-
- Downloads
* Includes tab completion. It's not magic, but it's very cool. At any
rate it's better than what used to be there. * Does proper SQL "host variable" substitution as pointed out by Andreas Zeugwetter (thanks): select * from :foo; Also some changes in how ':' and ';' are treated (escape with \ to send to backend). This does _not_ affect the '::' cast operator, but perhaps others that contain : or ; (but there are none right now). * To show description with a <something> listing, append '?' to command name, e.g., \df?. This seemed to be the convenient and logical solution. Or append a '+' to see more useless information, e.g., \df+. * Fixed fflush()'ing bug pointed out by Jan during the regression test discussion. * Added LastOid variable. This ought to take care of TODO item "Add a function to return the last inserted oid, for use in psql scripts" (under CLIENTS) E.g., insert into foo values(...); insert into bar values(..., :LastOid); \echo $LastOid * \d command shows constraints, rules, and triggers defined on the table (in addition to indices) * Various fixes, optimizations, corrections * Documentation update as well Note: This now requires snprintf(), which, if necessary, is taken from src/backend/port. This is certainly a little weird, but it should suffice until a source tree cleanup is done. Enjoy. -- Peter Eisentraut Sernanders väg 10:115
Showing
- doc/src/sgml/ref/psql-ref.sgml 163 additions, 169 deletionsdoc/src/sgml/ref/psql-ref.sgml
- src/bin/psql/Makefile.in 11 additions, 3 deletionssrc/bin/psql/Makefile.in
- src/bin/psql/command.c 72 additions, 49 deletionssrc/bin/psql/command.c
- src/bin/psql/command.h 0 additions, 4 deletionssrc/bin/psql/command.h
- src/bin/psql/common.c 51 additions, 51 deletionssrc/bin/psql/common.c
- src/bin/psql/describe.c 485 additions, 276 deletionssrc/bin/psql/describe.c
- src/bin/psql/describe.h 12 additions, 20 deletionssrc/bin/psql/describe.h
- src/bin/psql/help.c 1 addition, 1 deletionsrc/bin/psql/help.c
- src/bin/psql/input.c 4 additions, 2 deletionssrc/bin/psql/input.c
- src/bin/psql/input.h 5 additions, 10 deletionssrc/bin/psql/input.h
- src/bin/psql/large_obj.c 8 additions, 8 deletionssrc/bin/psql/large_obj.c
- src/bin/psql/large_obj.h 2 additions, 1 deletionsrc/bin/psql/large_obj.h
- src/bin/psql/mainloop.c 79 additions, 79 deletionssrc/bin/psql/mainloop.c
- src/bin/psql/print.c 35 additions, 33 deletionssrc/bin/psql/print.c
- src/bin/psql/print.h 2 additions, 2 deletionssrc/bin/psql/print.h
- src/bin/psql/prompt.c 1 addition, 1 deletionsrc/bin/psql/prompt.c
- src/bin/psql/settings.h 5 additions, 1 deletionsrc/bin/psql/settings.h
- src/bin/psql/startup.c 11 additions, 11 deletionssrc/bin/psql/startup.c
- src/bin/psql/tab-complete.c 812 additions, 0 deletionssrc/bin/psql/tab-complete.c
- src/bin/psql/tab-complete.h 8 additions, 0 deletionssrc/bin/psql/tab-complete.h
Loading
Please register or sign in to comment