Tom Lane
5f74d499bf
Defend against function calls with more than 8 arguments (code
...
used to overrun its fixed-size arrays before detecting error; not cool).
Also, replace uses of magic constant '8' with 'MAXFARGS'.
27 years ago
Tom Lane
1bdd7c68c0
Avoid redundant SysCache searches in coerce_type, for another
...
few percent speedup in INSERT...
27 years ago
Bruce Momjian
07842084fe
pgindent run over code.
27 years ago
Tom Lane
9432b6dd64
Do not assign output columns to junk attributes created from
...
GROUP BY or ORDER BY expressions in INSERT ... SELECT.
27 years ago
Bruce Momjian
a8d2820e6d
Fix for DEFAULT ''.
27 years ago
Bruce Momjian
585c967720
Change resjunk to a boolean.
27 years ago
Bruce Momjian
b8b1ba53ea
SELECT * error message fix.
27 years ago
Tom Lane
99f61dac7e
Defend against 'update oid'. Someday we might want to support
...
that, but it'd be a New Feature, wouldn't it ... in the meantime,
avoiding a backend crash seems worthwhile.
27 years ago
Bruce Momjian
9322950aa4
Cleanup of source files where 'return' or 'var =' is alone on a line.
27 years ago
Bruce Momjian
17467bb7fb
Rename Aggreg to Aggref.
27 years ago
Thomas G. Lockhart
2b189aa953
Improve CASE statement support.
...
Try to label CASE columns for a SELECT if not specified with an AS clause.
27 years ago
Thomas G. Lockhart
bedd04a551
Implement CASE expression.
27 years ago
Bruce Momjian
173c555948
Make functions static or ifdef NOT_USED. Prevent pg_version creation.
28 years ago
Thomas G. Lockhart
ee88006cf2
Clean up code in analyze.c for SERIAL data type.
...
Remove _all_ PARSEDEBUG print statements.
28 years ago
Bruce Momjian
58fdae0ddf
Fix for indexing problems.
28 years ago
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
28 years ago
Bruce Momjian
af74855a60
Renaming cleanup, no pgindent yet.
28 years ago
Bruce Momjian
a873da484f
Fix for select bug.
28 years ago
Bruce Momjian
6f36e9f7c9
Cleanup of target file.
28 years ago
Bruce Momjian
0fc13f582a
Make sure resdomno for update/insert match attribute number for
...
rewrite system. Restructure parse_target to make it easier to
understand.
28 years ago
Bruce Momjian
9cad9febb1
cleanup
28 years ago
Bruce Momjian
7971539020
heap_fetch requires buffer pointer, must be released; heap_getnext
...
no longer returns buffer pointer, can be gotten from scan;
descriptor; bootstrap can create multi-key indexes;
pg_procname index now is multi-key index; oidint2, oidint4, oidname
are gone (must be removed from regression tests); use System Cache
rather than sequential scan in many places; heap_modifytuple no
longer takes buffer parameter; remove unused buffer parameter in
a few other functions; oid8 is not index-able; remove some use of
single-character variable names; cleanup Buffer variables usage
and scan descriptor looping; cleaned up allocation and freeing of
tuples; 18k lines of diff;
28 years ago
Marc G. Fournier
a1627a1d64
From: David Hartwig <daybee@bellatlantic.net>
...
28 years ago
Bruce Momjian
3dd2eabc53
Cleanup makeTargetEntry and remove internal.c.
28 years ago
Bruce Momjian
683f399391
Change atttypmod from int16 to int32, for Thomas.
28 years ago
Thomas G. Lockhart
92ed9294de
Allow floating point constants for "def_arg" numeric arguments.
...
Used in the generic "CREATE xxx" parsing.
Do some automatic type conversion for inserts from other columns.
Previous trouble with "resjunk" regression test remains for now.
28 years ago
Bruce Momjian
6bd323c6b3
Remove un-needed braces around single statements.
28 years ago
Bruce Momjian
2e6159311a
I made several adjustments to my earlier patch to handle the
...
condition where the target label is ambiguous.
28 years ago
Thomas G. Lockhart
8536c96261
Do type conversion to match columns in UNION clauses.
...
Currently force the type to match the _first_ select in the union.
Move oper_select_candidate() from parse_func.c to parse_oper.c.
Throw error inside of oper_inexact() if no match for binary operators.
Check more carefully that types can be coerced
even if there is only one candidate operator in oper_inexact().
Fix up error messages for more uniform look.
Remove unused code.
Fix up comments.
28 years ago
Marc G. Fournier
9f3d63936b
From: David Hartwig <daveh@insightdist.com>
...
28 years ago
Thomas G. Lockhart
3ace5fd082
Add capabilities for automatic type conversion.
28 years ago
Bruce Momjian
a32450a585
pgindent run before 6.3 release, with Thomas' requested changes.
28 years ago
Bruce Momjian
edd3668895
Atttypmod cleanup.
28 years ago
Bruce Momjian
0386a50f31
Pass around typmod as int16.
28 years ago
Bruce Momjian
2c482cdbf2
Pass attypmod through to executor by adding to Var and Resdom.
28 years ago
Bruce Momjian
412a5e6539
Parser cleanup.
...
Add lock to i386 asm.
28 years ago
Bruce Momjian
c65ea0e040
New pg_attribute.atttypmod for type-specific information like
...
varchar length.
Cleans up code so attlen is always length.
Removed varchar() hack added earlier.
Will fix bug in selecting varchar() fields, and varchar() can be
variable length.
28 years ago
Bruce Momjian
0d9fc5afd6
Change elog(WARN) to elog(ERROR) and elog(ABORT).
28 years ago
Bruce Momjian
4b05912f0b
Fix for count(*), aggs with views and multiple tables and sum(3).
28 years ago
Bruce Momjian
b704426618
Make parser functions static where possible.
28 years ago
Bruce Momjian
598e86f3b3
Cleanup up include files.
28 years ago
Bruce Momjian
4a5b781d71
Break parser functions into smaller files, group together.
28 years ago