summaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
AgeCommit message (Collapse)Author
1999-11-04psql cleanupBruce Momjian
1999-10-26improve manual pageBruce Momjian
1999-10-25Standardize on MAXPGPATH as the size of a file pathname buffer,Tom Lane
eliminating some wildly inconsistent coding in various parts of the system. I set MAXPGPATH = 1024 in config.h.in. If anyone is really convinced that there ought to be a configure-time test to set the value, go right ahead ... but I think it's a waste of time.
1999-10-23Backup psql banner change.Bruce Momjian
1999-10-21change issue to information in bannerBruce Momjian
1999-10-21Make psql startup banner cleaner.Bruce Momjian
1999-10-14Update psql \? for \w.Bruce Momjian
1999-09-06Additional long-query fixes from Mike Ansley and yours truly.Tom Lane
psql.c seems clean of query length restrictions now.
1999-07-20While I was running some tests in psql, trying to figure out how to changeBruce Momjian
the query string to handle any length, I discovered that under certain conditions, psql will core dump when handling long strings. Thus, the patch. It was caused by a buffer overrun, probably not noticeable in a lot of cases, but pretty noticeable in mine. Problem was caused by the fact that the length check is only performed after the check for a ; to get the end of the query and execute. Cheers... MikeA
1999-07-19psql fix.Bruce Momjian
1999-07-19Cleanup of patch just applied.Bruce Momjian
1999-07-19Set the application name, used for parsing readline's .inputrc -- dzBruce Momjian
Massimo
1999-07-19Re-add getopt.h check, remove NT-specific tests for it.Bruce Momjian
1999-07-17 Move some system includes into c.h, and remove duplicates.Bruce Momjian
1999-06-04Suppress indexes on large objects from psql's \d listing;Tom Lane
they were confusing because the large object tables themselves are not shown. (Besides, if you've got hundreds or thousands of large objects, you really don't want to see 'em at all.) Also, suppress all indexes from the \z ACL listing, since indexes have no meaningful protection information.
1999-05-30Clean up uninitialized-variable warning from egcs.Tom Lane
(Curious that gcc doesn't complain about this code...).
1999-05-26Display numeric precision on \d.Bruce Momjian
1999-05-25pgindent run over code.Bruce Momjian
1999-05-12Do not refer to stdin in static variable initializer ...Tom Lane
apparently some systems choke on that :-(.
1999-05-03here are some patches for 6.5.0 which I already submitted but have neverBruce Momjian
been applied. The patches are in the .tar.gz attachment at the end: varchar-array.patch this patch adds support for arrays of bpchar() and varchar(), which where always missing from postgres. These datatypes can be used to replace the _char4, _char8, etc., which were dropped some time ago. block-size.patch this patch fixes many errors in the parser and other program which happen with very large query statements (> 8K) when using a page size larger than 8192. This patch is needed if you want to submit queries larger than 8K. Postgres supports tuples up to 32K but you can't insert them because you can't submit queries larger than 8K. My patch fixes this problem. The patch also replaces all the occurrences of `8192' and `1<<13' in the sources with the proper constants defined in include files. You should now never find 8192 hardwired in C code, just to make code clearer. -- Massimo Dal Zotto
1999-04-25psql's recognition of comments didn't work right in MULTIBYTETom Lane
environments; it was being careless about character lengths.
1999-04-15psql did the wrong thing with COPY FROM STDIN inside a fileTom Lane
sourced with \i (tried to read data from the terminal, rather than from the source file; this breaks pg_dump scripts read with \i). Also, \o file followed by COPY TO STDOUT wrote to terminal not designated file. All better now.
1999-03-30Bug fixes and enhances to psql submitted by Masaaki SakaidaTatsuo Ishii
1. Fix problems of PAGER and \? command 2. Add -E option that shows actual queries sent by \dt and friends 3. Add version number in startup banners for psql
1999-03-24Fix typo. #ifdef MUTIBYTE --> #ifdef MULTIBYTETatsuo Ishii
1999-03-15> > > This patches src/bin/psql/psql.c.Bruce Momjian
> > > > > > This patch is in responce to the following TODO list item: > > > * have psql \d on a view show the query > > > -Ryan
1999-02-21From: Tatsuo Ishii <t-ishii@sra.co.jp>Marc G. Fournier
Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef NOT_USED" for current. I have tested these patches in that the postgres binaries are identical.
1999-02-13Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian
1999-02-07Allow psql to do \p\g. Ingres does it, why not us?Bruce Momjian
1999-02-03Cleanup of source files where 'return' or 'var =' is alone on a line.Bruce Momjian
1999-01-27From: Tatsuo Ishii <t-ishii@sra.co.jp>Marc G. Fournier
Included patches fix a portability problem of unsetenv() used in 6.4.2 multi-byte support. unsetenv() is only avaliable on FreeBSD and Linux so I decided to replace with putenv().
1999-01-17Apply Win32 patch from Horak Daniel.Bruce Momjian
1998-12-14Current multi-byte related codes have a bug with SQL_ASCIIBruce Momjian
support. Included patches will solve it and should be applied to both trees. Also, it fix the problem with \c command of psql when switching different encoding databases. Regression tests passed. -- Tatsuo Ishii t-ishii@sra.co.jp
1998-11-17Additional fixes for mixed-case table names from Billy Allie.Thomas G. Lockhart
1998-10-26Get rid of some minor compiler warnings.Tom Lane
1998-10-08Hello!Bruce Momjian
Here are two new patches for the Win32 support. 1) The patch based on the one from Hiroshi Inoue [Inoue@tpf.co.jp], to load Winsock.dll from libpq.dll. 2) A patch for psql.c to remove the call to WSAStartup(), since it is not required when it's done in libpq.dll. I'm still looking for the possibility of having a crypt() function in libpq.dll too, the same way getopt was included. Any chance of getting this before 6.4, or should we wait for the next one? //Magnus
1998-09-21Fix for \z formatting from Tom Lane.Bruce Momjian
1998-09-03patch cleanups.Bruce Momjian
1998-09-03Attached is a patch to remove the definitions of libpq's internalBruce Momjian
structs from libpq-fe.h, as we previously discussed. There turned out to be sloppy coding practices in more places than I had realized :-(, but all in all I think it was a well-worth-while exercise. I ended up adding several routines to libpq's API in order to respond to application requirements that were exposed by this work. I owe the docs crew updates for libpq.sgml to describe these changes. I'm way too tired to work on the docs tonight, however. This is the last major change I intend to submit for 6.4. I do want to see if I can make libpgtcl work with Tcl 8.0 before we go final, but hopefully that will be a minor bug fix.
1998-09-01OK, folks, here is the pgindent output.Bruce Momjian
1998-08-29Hello!Bruce Momjian
Here is a new patch for libpq, to make it work on Win32 again (since the latest modifications broke it a little). Please also add the file "libpq.rc" to the interfaces/libpq directory. This will allow version-stamping of the generated DLL file, so that automatic install programs (and interested users) can determine the version of the file. The file is currently set as "prerelease". Before the release, somebody should change the line "FILEFLAGS VS_FF_PRERELEASE" to "FILEFLAGS 0". That information should probably go into toos\RELEASE_CHANGES. The patch is against the cvs as of ~ 1998-08-26 14:30 CEST. //Magnus
1998-08-27From: Magnus Hagander <mha@edu.sollentuna.se>Marc G. Fournier
Ok. Here is a patch to make psql work on Win32 (as a console mode application, of course). It requires getopt.c to be in src/utils - works fine with the FreeBSD version of it. Also, the file win32.mak should go into src/bin/psql.
1998-08-22With the attached patch, I have verified that long (> 8char anyway)Bruce Momjian
usernames and passwords work correctly in both "password" and "crypt" authorization mode. NOTE: at least on my machine, it seems that the crypt() routines ignore the part of the password beyond 8 characters, so there's no security gain from longer passwords in crypt auth mode. But they don't fail. The login-related part of psql has apparently not been touched since roughly the fall of Rome ;-). It was going through huge pushups to get around the lack of username/login parameters to PQsetdb. I don't know when PQsetdbLogin was added to libpq, but it's there now ... so I was able to rip out quite a lot of crufty code while I was at it. It's possible that there are still bogus length limits on username or password in some of the other PostgreSQL user interfaces besides psql/libpq. I will leave it to other folks to check that code. regards, tom lane
1998-08-17Date: Sun, 16 Aug 1998 14:56:48 -0400Marc G. Fournier
From: Tom Lane <tgl@sss.pgh.pa.us> Attached is a patch for this weekend's work on libpq. I've dealt with several issues: <for details: see message, in pgsql-patches archive for above data>
1998-08-10Add new \w write command to psql.Bruce Momjian
1998-08-06Make large objects their own relkind type. Fix dups in pg_class_mbBruce Momjian
files. Fix sequence creation hack for relkind type.
1998-08-05Fix for \d index display.Bruce Momjian
1998-08-04Add Indices display to \d command.Bruce Momjian
1998-07-26Fix compile error. Make transaction/work optional on all transactionBruce Momjian
statements. More cleanups of psql help. Fix for shift/reduce on UNION in subselect.
1998-07-18Add auto-size to screen to \d? commands. Use UNION to show allBruce Momjian
\d? results in one query. Add \d? field search feature. Rename MB to MULTIBYTE.
1998-07-09From: Tom Lane <tgl@sss.pgh.pa.us>Marc G. Fournier
Making PQrequestCancel safe to call in a signal handler turned out to be much easier than I feared. So here are the diffs. Some notes: * I modified the postmaster's packet "iodone" callback interface to allow the callback routine to return a continue-or-drop-connection return code; this was necessary to allow the connection to be closed after receiving a Cancel, rather than proceeding to launch a new backend... Being a neatnik, I also made the iodone proc have a typechecked parameter list. * I deleted all code I could find that had to do with OOB. * I made some edits to ensure that all signals mentioned in the code are referred to symbolically not by numbers ("SIGUSR2" not "2"). I think Bruce may have already done at least some of the same edits; I hope that merging these patches is not too painful.