summaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
AgeCommit message (Collapse)Author
1997-09-18Inline memset() as MemSet().Bruce Momjian
1997-09-13Cleanup of use of settings as pointer and structure, and ps.Bruce Momjian
1997-09-12No \\connect with usernames AND passwords.Bruce Momjian
1997-09-08Used modified version of indent that understands over 100 typedefs.Bruce Momjian
1997-09-08Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian
indenting. Also static variable indenting.
1997-09-07Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian
1997-09-05Add // comments.Bruce Momjian
1997-09-01Rearrange scanning code to support extended comments.Thomas G. Lockhart
Use #define symbols rather than integers for scanning states.
1997-08-26Manual page renaming.Bruce Momjian
1997-08-25pg_password utility. Cleanup for psql passwords. New datetime contrib ↵Bruce Momjian
stuff for new version. Fix for strutils needing config.h.
1997-08-22Fix for psql pager when no tty, cleanup for vacuum attdisbursion type.Bruce Momjian
1997-08-22Make psql use pager only when it has a tty.Bruce Momjian
1997-08-19Make functions static where possible, enclose unused functions in #ifdef ↵Bruce Momjian
NOT_USED.
1997-08-19NOT NULL implementation (submitted by Robson Paniago de Miranda).Vadim B. Mikheev
1997-08-17Changes so that it actually checks for <readline/history.h>, insteadMarc G. Fournier
of assuming it does exist
1997-08-03Cleanup for NAMEDATALEN use.Bruce Momjian
1997-08-01Fix stout/stderr paging. Do not page \h select, but page \h *.Bruce Momjian
1997-08-01Fix psql error output.Bruce Momjian
1997-07-24psql: Add PAGER for \h and \?,\C fix, indices spell fix.Bruce Momjian
1997-07-14Prevent psql optarg free-ingBruce Momjian
1997-06-29Fox case-sensitivity for \d and allow trailing ; on backslash commands.Bruce Momjian
1997-06-29Fix memory leak in psql.Bruce Momjian
1997-06-20Allow pg_dump to preserve owners of all objects.Bruce Momjian
1997-06-11From: Igor <igor@sba.miami.edu>Marc G. Fournier
Subject: [PATCHES] sequences display in psql Well, I am away at Progress training (not Postgres!!) and desided to do this patch during a break. This will allow listing of sequences in addition to listing of tables and indicies: \d would should indicies, tables, and sequences \ds would show sequences only.
1997-06-06From: Darren King <aixssd!darrenk@abs.net>Marc G. Fournier
Subject: [PATCHES] psql and large objects fix Psql was broken by using "Inv[0-9]+" instead of "xin[xv][0-9]+" to not show large object files. Been this way for a long time too. Relic of an older naming convention, perhaps?
1997-06-06From: Igor <igor@sba.miami.edu>Marc G. Fournier
Subject: [PATCHES] More psql and libpq patches Well..these would be the last patches until the release (I hope)... I ran the regression tests while watching psql under purify, and it did not leak even one byte. In this patch: * Plugged a major leak when PSQL reads files for input (either through \i options or through -f option) * Fixed the one remaining leak in PSQL in not clearing PGresult *results everywhere it is supposed to. (Thanks Tymm) * Fixed A small leak in PSQL not clearing all the PGsettings correctly. * A not-so-obvious (but small) leak in Libpq when PQsetdb fails for any reason. * Added \n to some Libpq error messages to make them easier to digest.. * Finally, added /* PURIFY */ comment to some of the code indicating the reason for why it was added/changed...for future developers.
1997-06-03cc1: warnings being treated as errorsVadim B. Mikheev
psql.c: In function `HandleSlashCmds': psql.c:1141: warning: `optarg3' might be used uninitialized in this function psql.c:1157: warning: `optarg3' might be used uninitialized in this function -> char *optarg3 = NULL;
1997-06-02From: Igor <igor@sba.miami.edu>Marc G. Fournier
Subject: [PATCHES] patch for a memory leak Well...I screwed up and posted the wrong patch for psql originally.. The patch for that patch wposted below will fix it..
1997-06-01From: Darren King <aixssd!darrenk@abs.net>Marc G. Fournier
Subject: [PATCHES] psql - \dt,\di commands. I sent this a couple of months ago in re a request by Maxim Kozin, but I had the patch reversed, creating some confusion over applying it. Here's a more complete version. Adds \dt to list only tables/views and \di to list only indicies. \d will still work as before.
1997-06-01From: Igor <igor@sba.miami.edu>Marc G. Fournier
Subject: [PATCHES] memory leak patches in libpq and psql A couple of small memory leak patches (detected with Purify) primarily in libpq. * Fixed (NULL) border problem in psql (run psql, do \m, then select something from a table...row separators will be nulls) * Fixed memory leak with the abovementioned border not being freed properly. * Fixed memory leak in freePGconn() not freeing conn->port * Fixed up PQclear() to free parts of PGresult only if these parts are not null. * Fixed a decent memory leak that occured after executing every command in psql. PGresult *results was not freed most of the time. There is still a leak being detected (2 bytes) in readline functions, but I think this is old readline library. I will install new one and test it.
1997-05-24Fix core dump on \c.Bruce Momjian
1997-05-24Fix \c option after breaking it.Bruce Momjian
1997-05-23Only free memory if environment value is replaced.Bruce Momjian
1997-05-23Comment on fix added.Bruce Momjian
1997-05-22Preserve putenv() memory in psql \connect user fix.Bruce Momjian
1997-05-22Fix backslash commands broken when \connect user added.Bruce Momjian
1997-05-21Updated pg_dumpall and psql to preserve database owners.Bruce Momjian
1997-04-10Add a \z command to psql that lists off grant/revoke permissionsMarc G. Fournier
- if someone can pick a better \? for this, plesae let me know...all the good ones seem taken :(
1997-03-12From: Dan McGuirk <mcguirk@indirect.com>Marc G. Fournier
Subject: [HACKERS] password authentication This patch adds support for plaintext password authentication. To use it, you add a line like host all 0.0.0.0 0.0.0.0 password pg_pwd.conf to your pg_hba.conf, where 'pg_pwd.conf' is the name of a file containing the usernames and password hashes in the format of the first two fields of a Unix /etc/passwd file. (Of course, you can use a specific database name or IP instead.) Then, to connect with a password through libpq, you use the PQconnectdb() function, specifying the "password=" tag in the connect string and also adding the tag "authtype=password". I also added a command-line switch '-u' to psql that tells it to prompt for a username and password and use password authentication.
1997-02-13Various patches for nextstep by GregorHoffleitMarc G. Fournier
Replaced NEED_STRDUP by !HAVE_STRDUP
1997-02-11Fix \? syntax for copy command.Bruce Momjian
1997-01-26Remove #include "rlstubs.h", since it doesn't exist anymoreMarc G. Fournier
1997-01-25Remove rlstubs.[ch], since they weren't actually doing anything that couldn'tMarc G. Fournier
be #ifdef'd into psql.c itself From what I can tell, if USE_READLINE is true or false, psql works under FreeBSD, without configure. Now to test it *again* under sparc_solaris with configure and see if it works...
1997-01-25Okay, this should pretty much clean up the psql/readline/history mess.Marc G. Fournier
Added a README.readline file until configure is integrated to *try* and explain the way things stand. Removed a stray configure .in file
1997-01-25Why can't everyone be standard? :(Marc G. Fournier
Add some code to make psql happy with a system where there is *no* history code available, but there is readline code...
1997-01-25Modifications to handle the situation where readline.h exists, butMarc G. Fournier
history.h doesn't...previously, it was assumed that both existed, or didn't exist...but this assumption fails on the one sparc_solaris box that I have access to, and could exist in other circumstances
1997-01-25Change how readline support is included in psql.c ...Marc G. Fournier
See message to hackers@ mailing list concerning this...
1997-01-13Oops, introduced a bug in EOF handling. Fix it.Bruce Momjian
1997-01-13No EOF from psql when quiet mode.Bruce Momjian
1997-01-10I've noticed that \i filename in 6.0beta prints the input file double-spaced.Bruce Momjian
Here is a trivial patch to get back the 1.09 behavior; it just removes trailing newlines before printing the line out with a newline rather than after... Thomas Lockhart