summaryrefslogtreecommitdiff
path: root/src/bin/psql/psql.c
AgeCommit message (Collapse)Author
1998-06-16Hi, here are the patches to enhance existing MB handling. This timeBruce Momjian
I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii
1998-06-15Remove un-needed braces around single statements.Bruce Momjian
1998-05-15Another \f\ fix for psql.Bruce Momjian
1998-05-13Fix to allow \f \ to make spaces as delimiter.Bruce Momjian
1998-05-12The attached patch corrects two problems with autoconfiguration ofBruce Momjian
psql in Postgres 6.3.2. Both of these problems were complained of recently in pgsql-questions: 1. In the right circumstances, psql.c will fail to compile due to trying to include a nonexistent <history.h>. (Thread "Compile-time error" around 17 Apr 98.) 2. In other circumstances, psql will compile but does not provide command history capability, even though the underlying readline library supports it. (Various threads, most recently "query repetition in psql" around 29 Apr.) Tom Lane
1998-05-12Give proper error on psql \copy use.Bruce Momjian
1998-05-06What I've done:Bruce Momjian
1. Rewritten libpq to allow asynchronous clients. 2. Implemented client side of cancel protocol in library, and patched psql.c to send a cancel request upon SIGINT. The backend doesn't notice it yet :-( 3. Implemented 'Z' protocol message addition and renaming of copy in/out start messages. These are implemented conditionally, ie, the client protocol version is checked; so the code should still work with 1.0 clients. 4. Revised protocol and libpq sgml documents (don't have an SGML compiler, though, so there may be some markup glitches here). What remains to be done: 1. Implement addition of atttypmod field to RowDescriptor messages. The client-side code is there but ifdef'd out. I have no idea what to change on the backend side. The field should be sent only if protocol >= 2.0, of course. 2. Implement backend response to cancel requests received as OOB messages. (This prolly need not be conditional on protocol version; just do it if you get SIGURG.) 3. Update libpq.3. (I'm hoping this can be generated mechanically from libpq.sgml... if not, will do it by hand.) Is there any other doco to fix? 4. Update non-libpq interfaces as necessary. I patched libpgtcl so that it would compile, but haven't tested it. Dunno what needs to be done with the other interfaces. Have at it! Tom Lane
1998-05-04Fix for missing parens with \g causing psql to get completelyBruce Momjian
confused.
1998-04-05this patch solve 2 problemes :Bruce Momjian
probleme number 1 : - configure can find the library readline , but don't find the header file . so in this case we don't use lib readline . probleme number 2 : - when you have postgres 6.2.1 and readline installed with the same prefix( and generally all your software ) . you can compile the version 6.3 . I use this prefix , when configure ask me for "Additional directories to search for include files" . ( because there a conflict in the header when you compile psql.c ) In this case, you must permut the sequence of directive -I . Erwan MAS
1998-03-16Prevent \do from wrapping.Bruce Momjian
1998-02-26pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian
1998-02-25Make changes to psql so that it sees pg_user again instead of db_userMarc G. Fournier
1998-02-23Modify initdb.sh so that it makes pg_user readable through view db_userMarc G. Fournier
Modify psql so that it uses db_user instead of pg_user GRANT SELECT on pg_class
1998-02-07atttypmod now -1.Bruce Momjian
1998-02-06Fix for \d on long table names.Bruce Momjian
1998-01-28psql \df cleanup and lock manual page cleanup.Bruce Momjian
1998-01-25Add cash_words_out and fix \df width.Bruce Momjian
1998-01-23From: James Hughes <jamesh@interpath.com>Marc G. Fournier
This is a patch to fix crashes in psql when executing queries from an external file. The code also adds error checking to verify that memory for "query" was allocated. The conditional for the block of code was changed from "query == NULL" to "query_alloced == false". The conditional, "query == NULL", was never true. This prevented the memory being allocated for "query". A few lines later, an attempt to write to an un-allocated memory area generated a SIGSEGV causing the frontend to crash.
1998-01-23From: Andrew Martin <martin@biochemistry.ucl.ac.uk>Marc G. Fournier
psql .psqlrc file startup(Andrew)
1998-01-22Allow \z to show sequences.Bruce Momjian
1998-01-17Creates the SubLink structure, and the Query->hasSubLink field,Bruce Momjian
with supporting code. Creates SubLink node in gram.y. psql.c patch for newatttypmod field.
1998-01-09PAGER \z in psql.Bruce Momjian
1998-01-05Remove un-needed quotes from psql \d DEFAULT display.Bruce Momjian
1998-01-05Add NOT NULL and DEFAULT to \d table.Bruce Momjian
1997-12-23Make no-tty not use quiet in psql, fix group by copy failure, fix ccsym to ↵Bruce Momjian
delete tmp files.
1997-12-22Fix notty output to show status result. -q option still turns it off.Bruce Momjian
1997-12-06Add VARHDRSZ where needed. Many places just used 4.Bruce Momjian
1997-12-05Fix tolower loops to go in proper direction for cache.Bruce Momjian
1997-11-30Fix for \dd on types.Bruce Momjian
1997-11-26\dd fix.Bruce Momjian
1997-11-24Change heading.Bruce Momjian
1997-11-24Cleanup wrapping in \d commands.Bruce Momjian
1997-11-24Move descriptions to pg_proc, add descriptions.Bruce Momjian
1997-11-19Change \df order.Bruce Momjian
1997-11-18Make \d commands not wrap over 80 cols.Bruce Momjian
1997-11-17Clean out pgbuiltin now that new psql \d commands exist.Bruce Momjian
1997-11-17Fix \e for empty file.Bruce Momjian
1997-11-17Fix for \e on empty file.Bruce Momjian
1997-11-16Re-ordeer new \d command output.Bruce Momjian
1997-11-16New \dS psql command. initdb cleanup.Bruce Momjian
1997-11-15Add new \df psql option and oid8types() function.Bruce Momjian
1997-11-14Add new psql \da, \do, and \dT options.Bruce Momjian
1997-11-14FIx for indexing regex stuff. Change rowoid to objoid.Bruce Momjian
1997-11-13pg_description cleanup.Bruce Momjian
1997-11-13Add pg_description table for info on tables, columns, operators, types, and ↵Bruce Momjian
aggregates. Modify psql with new \dd operator to access description
1997-11-07Support "delimited identifiers" for \d tablename command.Thomas G. Lockhart
This allows mixed-case identifiers if surrounded by double quotes. Add mention of "with location" clause for "create database" in help.
1997-11-03Add paging for \d, and fix \i.Bruce Momjian
1997-09-24Remove debugging "puts" print statement.Thomas G. Lockhart
1997-09-23Fix for backslash quote.Bruce Momjian
1997-09-19Fix \e and \p after query.Bruce Momjian