summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
AgeCommit message (Collapse)Author
2000-05-12Small cleanup of file.Bruce Momjian
2000-05-05psql: suppress warnings about too many arguments if the command is not valid ↵Peter Eisentraut
in the first place
2000-04-16squished \dS+ bug pointed out by Mike MascariPeter Eisentraut
2000-04-16more psql bug squashing:Peter Eisentraut
\copy without arguments failed commands with too many arguments were too silent
2000-04-14fixed another psql \e bug (handle newlines as whitespace)Peter Eisentraut
repaired psql option scanning bug (special treatment to \g |pipe) fixed ipcclean makefile made configure look for Perl to handle psql help build gracefully
2000-04-12Ye-old pgindent run. Same 4-space tabs.Bruce Momjian
2000-04-11Clean up temp files from \e.Bruce Momjian
2000-03-27Fixed bug with repeated \e in psql (failed to clear buffers correctly)Peter Eisentraut
2000-03-18Fixed psql -c "\slashcmd"Peter Eisentraut
2000-03-01More fixes for psql ^C handling, especially during copy. Still doesn'tPeter Eisentraut
cope so well with copy to but that will have to wait for the next release. Also added -X option to prevent reading .psqlrc startup file.
2000-02-21Fixes for \encoding command.Tatsuo Ishii
1) freeing null pointer 2) invalid encoding info may be stored into psql variable 3) fix indentation
2000-02-20Moved psql \eset and \eshow to \encodingPeter Eisentraut
Improved psql's Ctrl-C handling Fixed configure test for sigsetjmp that now even recognizes it if it's a macro
2000-02-20Fix missing \n in some psql_error calls.Tom Lane
2000-02-19Add new backslash command \eset and \eshow.Tatsuo Ishii
2000-02-16Clean up include files use in psql.Bruce Momjian
2000-02-07Fixed psql double quoting of SQL idsPeter Eisentraut
Fixed libpq printing functions
2000-02-05Change function name PQclientencoding to PQclientEncoding sinceTatsuo Ishii
it seems more suitable for the naming convention in libpq.
2000-01-29A few minor psql enhancementsPeter Eisentraut
Initdb help correction Changed end/abort to commit/rollback and changed related notices Commented out way old printing functions in libpq Fixed a typo in alter table / alter column
2000-01-23updated install filePeter Eisentraut
updated date/time types doc fixed small psql bug removed libpq code that lower-cased db names make notice when long identifier is truncated
2000-01-22added ALTER TABLE DROP COLUMN, early versionPeter Eisentraut
2000-01-18another set of cleanupsPeter Eisentraut
2000-01-18Hi!Bruce Momjian
Here is a patch to bring both libpq and psql to a state where it compiles on win32 (native) again. A lot of things have changed, and I have not been able to keep up with them all, so it has been broken for quite a while. After this patch, at least it compiles. It also talks "basic talk" to the server, but I have not yet tested all things. Sending queries, and using e.g. \d or \dt works fine. The rest will have to be tested further. It also bumps the version on libpq.dll to 7.0. Everything should be enclosed in #ifdef WIN32, unless I have missed something. Except for one or maybe two places where I have moved a #include that should not be used on win32 from the "global area" into a "#ifndef WIN32 area". //Magnus
2000-01-15Adapt to the changes of libpq(eliminateing using putenv()).Tatsuo Ishii
2000-01-14Fixed psql variables vs array syntax, as well as minor psql enhancementsPeter Eisentraut
2000-01-12Fixed a few "fixes" and bugs. Adjusted messages and options to GNU suggestions.Peter Eisentraut
1999-12-10This should fix the \e (\p, \g, ...) behaviour on an empty query buffer.Bruce Momjian
Also, minor tweakage of tab completion, and I hope the output is flushed on time now. -- Peter Eisentraut Sernanders väg 10:115
1999-12-10Added a fflush(stdout) to the \p command required for theJan Wieck
multisession test tool. Jan
1999-11-29I pulled this one out via CVS, I hope you can make use of it:Bruce Momjian
Peter.
1999-11-26* Includes tab completion. It's not magic, but it's very cool. At anyBruce Momjian
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
1999-11-13The \p\g fix didn't turn out to be so bad. It even works in otherBruce Momjian
circumstances: => select * from foo\x\t\pset border 0 \p\g\\select * from bar; Also the release prep update so the sql_help.h is generated before packaging. Peter.
1999-11-11In the spirit of TODO itemBruce Momjian
* Add use of 'const' for varibles in source tree (which is misspelled, btw.) I went through the front-end libpq code and did so. This affects in particular the various accessor functions (such as PQdb() and PQgetvalue()) as well as, by necessity, the internal helpers they use. I have been really thorough in that regard, perhaps some people will find it annoying that things like char * foo = PQgetvalue(res, 0, 0) will generate a warning. On the other hand it _should_ generate one. This is no real compatibility break, although a few clients will have to be fixed to suppress warnings. (Which again would be in the spirit of the above TODO.) In addition I replaced some int's by size_t's and removed some warnings (and generated some new ones -- grmpf!). Also I rewrote PQoidStatus (so it actually honors the const!) and supplied a new function PQoidValue that returns a proper Oid type. This is only front-end stuff, none of the communicaton stuff was touched. The psql patch also adds some new consts to honor the new libpq situation, as well as fixes a fatal condition that resulted when using the -V (--version) option and there is no database listening. So, to summarize, the psql you should definitely put in (with or without the libpq). If you think I went too far with the const-mania in libpq, let me know and I'll make adjustments. If you approve it, I will also update the docs. -Peter -- Peter Eisentraut Sernanders vaeg 10:115
1999-11-04psql cleanupBruce Momjian
1999-11-04Major psql overhaul by Peter Eisentraut.Bruce Momjian