You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tom Lane
a45c63ea0e
Fix printing of whole-row Vars at top level of a SELECT targetlist.
...
Normally whole-row Vars are printed as "tabname.*". However, that does not
work at top level of a targetlist, because per SQL standard the parser will
think that the "*" should result in column-by-column expansion; which is
not at all what a whole-row Var implies. We used to just print the table
name in such cases, which works most of the time; but it fails if the table
name matches a column name available anywhere in the FROM clause. This
could lead for instance to a view being interpreted differently after dump
and reload. Adding parentheses doesn't fix it, but there is a reasonably
simple kluge we can use instead: attach a no-op cast, so that the "*" isn't
syntactically at top level anymore. This makes the printing of such
whole-row Vars a lot more consistent with other Vars, and may indeed fix
more cases than just the reported one; I'm suspicious that cases involving
schema qualification probably didn't work properly before, either.
Per bug report and fix proposal from Abbas Butt, though this patch is quite
different in detail from his.
Back-patch to all supported versions.
14 years ago
..
Makefile
Support window functions a la SQL:2008.
17 years ago
acl.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
array_userfuncs.c
Fix array- and path-creating functions to ensure padding bytes are zeroes.
15 years ago
arrayfuncs.c
Fix array- and path-creating functions to ensure padding bytes are zeroes.
15 years ago
arrayutils.c
Update copyright for 2009.
17 years ago
ascii.c
Update copyright for 2009.
17 years ago
bool.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
cash.c
Fix assorted bogosities in cash_in() and cash_out().
14 years ago
char.c
Update copyright for 2009.
17 years ago
date.c
Avoid unexpected conversion overflow in planner for distant date values.
15 years ago
datetime.c
Re-allow input of Julian dates prior to 0001-01-01 AD.
15 years ago
datum.c
Update copyright for 2009.
17 years ago
dbsize.c
Rewrite pg_size_pretty() to avoid compiler bug.
15 years ago
domains.c
Update copyright for 2009.
17 years ago
encode.c
Remove duplicate variable initializations identified by clang static checker.
17 years ago
enum.c
Update copyright for 2009.
17 years ago
float.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
format_type.c
Update copyright for 2009.
17 years ago
formatting.c
Fix corner case bug in numeric to_char().
14 years ago
genfile.c
Update copyright for 2009.
17 years ago
geo_ops.c
Fix array- and path-creating functions to ensure padding bytes are zeroes.
15 years ago
geo_selfuncs.c
Update copyright for 2009.
17 years ago
inet_net_ntop.c
Fix another passel of include-file breakage. Kris Jurka, Tom Lane
20 years ago
inet_net_pton.c
Fix another passel of include-file breakage. Kris Jurka, Tom Lane
20 years ago
int.c
Add overflow checks to int4 and int8 versions of generate_series().
15 years ago
int8.c
Add overflow checks to int4 and int8 versions of generate_series().
15 years ago
like.c
Update copyright for 2009.
17 years ago
like_match.c
Rewrite LIKE's %-followed-by-_ optimization so it really works (this time
16 years ago
lockfuncs.c
Update copyright for 2009.
17 years ago
mac.c
Downgrade implicit casts to text to be assignment-only, except for the ones
19 years ago
misc.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
nabstime.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
name.c
Update copyright for 2009.
17 years ago
network.c
Revert the behavior of inet/cidr functions to not unpack the arguments.
14 years ago
numeric.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
numutils.c
Update copyright for 2009.
17 years ago
oid.c
Update copyright for 2009.
17 years ago
oracle_compat.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
pg_locale.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
pg_lzcompress.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
pgstatfuncs.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
pseudotypes.c
Update copyright for 2009.
17 years ago
quote.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
regexp.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
regproc.c
Update copyright for 2009.
17 years ago
ri_triggers.c
Prevent indirect security attacks via changing session-local state within
16 years ago
rowtypes.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
ruleutils.c
Fix printing of whole-row Vars at top level of a SELECT targetlist.
14 years ago
selfuncs.c
Fix an Assert that turns out to be reachable after all.
14 years ago
tid.c
Update copyright for 2009.
17 years ago
timestamp.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
trigfuncs.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
tsginidx.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
tsgistidx.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
tsquery.c
Fix erroneous parsing of tsquery input "... & !(subexpression) | ..."
15 years ago
tsquery_cleanup.c
Update copyright for 2009.
17 years ago
tsquery_gist.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
tsquery_op.c
Fix core dump in QTNodeCompare when tsquery_cmp() is applied to two empty
16 years ago
tsquery_rewrite.c
Fix incorrect cleanup of tsquery in ts_rewrite(). Per bug #4933 by
17 years ago
tsquery_util.c
Avoid uninitialized bits in the result of QTN2QT().
15 years ago
tsrank.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
tsvector.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
tsvector_op.c
Fix potential memory clobber in tsvector_concat().
15 years ago
tsvector_parser.c
Update copyright for 2009.
17 years ago
txid.c
Update copyright for 2009.
17 years ago
uuid.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
varbit.c
Make bit/varbit substring() treat any negative length as meaning "all the rest
16 years ago
varchar.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
varlena.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
version.c
Update copyright for 2009.
17 years ago
windowfuncs.c
8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list
17 years ago
xid.c
Update copyright for 2009.
17 years ago
xml.c
Fix null-dereference crash in parse_xml_decl().
15 years ago