postgresql/src/bin/psql
Tom Lane e7a03793d8 Fix psql to not go into infinite recursion when expanding a variable that
refers to itself (directly or indirectly).  Instead, print a message when
recursion is detected, and don't expand the repeated reference.  Per bug
#5448 from Francis Markham.

Back-patch to 8.0.  Although the issue exists in 7.4 as well, it seems
impractical to fix there because of the lack of any state stack that
could be used to track active expansions.
2010-05-05 22:19:18 +00:00
..
po Translation updates 2009-12-08 22:13:05 +00:00
.cvsignore Re-implement psql's input scanning to use a flex-generated lexer, as per 2004-02-19 19:40:09 +00:00
bcc32.mak Allow Borland CC to compile libpq and psql. 2007-01-11 02:40:12 +00:00
command.c Return proper exit code (3) from psql when ON_ERROR_STOP=on and 2010-03-09 01:09:54 +00:00
command.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
common.c In psql, when running a SELECT query using a cursor, flush the query 2007-06-22 03:19:57 +00:00
common.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
copy.c Fix psql's \copy to not insert spaces around dots and commas in the text of 2010-04-15 21:05:23 +00:00
copy.h Support binary COPY through psql. Also improve detection of write errors 2006-05-26 19:51:29 +00:00
create_help.pl Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
describe.c Fix a memory leak in psql: we'd leak a few PGresult handles if 2006-11-08 01:22:55 +00:00
describe.h Remove 576 references of include files that were not needed. 2006-07-14 14:52:27 +00:00
help.c Message style improvements 2006-10-06 17:14:01 +00:00
help.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
input.c Make HISTCONTROL=ignoredups work again (broken by misordering of 2006-12-24 19:14:41 +00:00
input.h Fix inclusions of readline/editline header files so that we only attempt to 2009-08-24 16:18:30 +00:00
large_obj.c Invent an assign-hook mechanism for psql variables similar to the one 2006-08-29 15:19:51 +00:00
large_obj.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
mainloop.c Do not build psql's flex module on its own, but instead include it in 2009-11-10 23:12:37 +00:00
mainloop.h Fix a passel of recently-committed violations of the rule 'thou shalt 2006-07-14 05:28:29 +00:00
Makefile Do not build psql's flex module on its own, but instead include it in 2009-11-10 23:12:37 +00:00
mbprint.c Print combining characters (those reported as having zero width by 2006-12-27 19:45:51 +00:00
mbprint.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
nls.mk New translations 2004-12-13 16:30:53 +00:00
print.c Fix numericlocale psql option when used with a null string and latex and troff 2010-03-01 20:56:06 +00:00
print.h Create a FETCH_COUNT parameter that causes psql to execute SELECT-like 2006-08-29 22:25:08 +00:00
prompt.c Invent an assign-hook mechanism for psql variables similar to the one 2006-08-29 15:19:51 +00:00
prompt.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
psqlrc.sample Fix filename mention in psqlrc.sample file. 2004-04-22 14:33:49 +00:00
psqlscan.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
psqlscan.l Fix psql to not go into infinite recursion when expanding a variable that 2010-05-05 22:19:18 +00:00
settings.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
startup.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
stringutils.c pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
stringutils.h Respond to Jeremy Drake's original gripe that \copy needs to recognize 2006-06-01 01:28:00 +00:00
tab-complete.c Fix tab completion of ANALYZE VERBOSE <tab>. It was previously confused 2009-03-27 14:59:11 +00:00
tab-complete.h Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
variables.c Invent an assign-hook mechanism for psql variables similar to the one 2006-08-29 15:19:51 +00:00
variables.h pgindent run for 8.2. 2006-10-04 00:30:14 +00:00
win32.mak Get rid of retail definitions of HAVE_STRDUP and HAVE_VSNPRINTF in 2006-11-21 23:26:47 +00:00