aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/mainloop.c
Commit message (Collapse)AuthorAge
* Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig.Tom Lane2004-01-21
|
* Fix some copyright notices that weren't updated. Improve copyright toolTom Lane2003-08-04
| | | | so it won't miss 'em again.
* pgindent run.Bruce Momjian2003-08-04
|
* Improve psql comment coding.Bruce Momjian2003-03-21
|
* Fix multiline C comments in psql.Bruce Momjian2003-03-20
|
* I'm continuing to work on cleaning up code in psql. As things appearBruce Momjian2003-03-20
| | | | | | | | | | | | | | | | | | | | now, my changes seem to work. Some possible minor bugs got squished on the way but I can't be sure without more feedback from people who really put the code to the test. The new patch mostly simplifies variable handling and reduces code duplication. Changes in the command parser eliminate some redundant variables (boolean state + depth counter), replaces some "else if" constructs with switches, and so on. It is meant to be applied together with my previous patch, although I hope they don't conflict; I went back to the CVS version for this one. One more thing I thought should perhaps be changed: an IGNOREEOF value of n will ignore only n-1 EOFs. I didn't want to touch this for fear of breaking existing applications, but it does seem a tad illogical. Jeroen T. Vermeulen
* Here's some changes I made last night to psql's common.c (as found inBruce Momjian2003-03-20
| | | | | | | | | 7.3.2). It removes some code duplication and #ifdeffing, and some unstructured ugliness such as tacky breaks and an unneeded continue. Breaks up a large function into smaller functions and reduces required nesting levels, and kills a variable or two. Jeroen T. Vermeulen
* psql thought that backslash is an escape character inside double quotes.Tom Lane2002-10-12
| | | | It isn't.
* pgindent run.Bruce Momjian2002-09-04
|
* Fix some more boundary-case errors in psql variable substitution:Tom Lane2002-07-03
| | | | | | wasn't really right for case where :var is at the end of the line, was definitely not right if var expanded to empty in that case, and failed to recalculate thislen before jumping back to rescan.
* Noted with versions 7.0.3, 7.1.3, and 7.2.1:Bruce Momjian2002-06-15
| | | | | | | | | The psql interpreter becomes unstable if variable substitutions are used. The debugger GDB was unable to help however mpatrol reports that the sprintf at mainloop.c:389 is steping one byte farther than the allocation. William K. Volkman
* Reset parenthesis level counter upon \r.Peter Eisentraut2002-03-27
|
* Add code to preserve paren level display after \g, as submitted months ago.Bruce Momjian2002-02-18
|
* Oops, back out paren fix. That is for 7.3.Bruce Momjian2001-12-28
|
* Add mention of Christof Petig for ecpg items.Bruce Momjian2001-12-28
|
* New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian2001-11-05
| | | | initdb/regression tests pass.
* Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian2001-10-28
| | | | spacing. Also adds space for one-line comments.
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-25
| | | | tests pass.
* Native Language Support (NLS)Peter Eisentraut2001-06-02
| | | | | | | | | | | Use --enable-nls to turn it on; see installation instructions for details. See developer's guide how to make use of it in programs and how to add translations. psql sources have been almost fully prepared and an incomplete German translation has been provided. In the backend, only elog() calls are currently translatable, and the provided German translation file is more of a placeholder.
* pqsignal call needs to be #ifndef WIN32, per report from Magnus.Tom Lane2001-03-26
|
* Fix problems with coredumps due to ^C when longjmp buffer isn't valid.Tom Lane2001-03-23
| | | | Now, we will only catch ^C at times when it is valid.
* pgindent run. Make it all clean.Bruce Momjian2001-03-22
|
* Do not strip whitespace within quotes.Peter Eisentraut2001-02-28
|
* Restructure the key include files per recent pghackers discussion: thereTom Lane2001-02-10
| | | | | | | | | | | are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
* Don't strip trailing backslashes from a line. Treat them more reasonably.Peter Eisentraut2000-07-17
|
* Implement nested block comments in the backend and in psql.Thomas G. Lockhart2000-07-14
| | | | | | | | | | | | | | Include updates for the comment.sql regression test. Implement SET SESSION CHARACTERISTICS and SET DefaultXactIsoLevel. Implement SET SESSION CHARACTERISTICS TRANSACTION COMMIT and SET AutoCommit in the parser only. Need to add code to actually do something. Implement WITHOUT TIME ZONE type qualifier. Define SCHEMA keyword, along with stubbed-out grammar. Implement "[IN|INOUT|OUT] [varname] type" function arguments in parser only; INOUT and OUT throws an elog(ERROR). Add PATH as a type-specific token, since PATH is in SQL99 to support schema resource search and resolution.
* Fix select '1--2'; for PEter.Bruce Momjian2000-06-30
|
* Fix quotes in /* */ comments in psql.Bruce Momjian2000-06-29
|
* /home/peter/commit-msgPeter Eisentraut2000-05-12
|
* fixed another psql \e bug (handle newlines as whitespace)Peter Eisentraut2000-04-14
| | | | | | repaired psql option scanning bug (special treatment to \g |pipe) fixed ipcclean makefile made configure look for Perl to handle psql help build gracefully
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-12
|
* Fixed bug with repeated \e in psql (failed to clear buffers correctly)Peter Eisentraut2000-03-27
|
* Modify lexing of multi-char operators per pghackers discussion aroundTom Lane2000-03-18
| | | | | | | | | | 16-Mar-00: trailing + or - is not part of the operator unless the operator also contains characters not present in SQL92-defined operators. This solves the 'X=-Y' problem without unduly constraining users' choice of operator names --- in particular, no existing Postgres operator names become invalid. Also, remove processing of // comments, as agreed in the same thread.
* Fixed deficiency where an unterminated (no semicolon) command at end ofPeter Eisentraut2000-03-13
| | | | psql script would be dropped silently.
* Added configure test for readline's filename_completion_functionPeter Eisentraut2000-03-05
| | | | Completed psql's \? help
* More fixes for psql ^C handling, especially during copy. Still doesn'tPeter Eisentraut2000-03-01
| | | | | | 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.
* Moved psql \eset and \eshow to \encodingPeter Eisentraut2000-02-20
| | | | | Improved psql's Ctrl-C handling Fixed configure test for sigsetjmp that now even recognizes it if it's a macro
* Fix missing \n in some psql_error calls.Tom Lane2000-02-20
|
* Clean up include files use in psql.Bruce Momjian2000-02-16
|
* Adjusted psql echoing options (-a and -e)Peter Eisentraut2000-02-13
|
* Default argument for createdbPeter Eisentraut2000-02-10
| | | | Changed EXIT_ON_ERROR to ON_ERROR_STOP in psql
* Fixed psql double quoting of SQL idsPeter Eisentraut2000-02-07
| | | | Fixed libpq printing functions
* Made abstime/reltime use int4 instead of time_t (TODO item)Peter Eisentraut2000-01-24
| | | | | | Made type equivalency apply to aggregates (TODO item) Fixed parsing bug in psql Reverted some stupid options changes I made to pg_dump
* another set of cleanupsPeter Eisentraut2000-01-18
|
* Included all yacc and lex files into the distribution.Peter Eisentraut2000-01-16
|
* Adapt to the changes of libpq(eliminateing using putenv()).Tatsuo Ishii2000-01-15
|
* Fixed psql variables vs array syntax, as well as minor psql enhancementsPeter Eisentraut2000-01-14
|
* Fixed a few "fixes" and bugs. Adjusted messages and options to GNU suggestions.Peter Eisentraut2000-01-12
|
* Clear paren level flag on \r or any backslash command, rather thanBruce Momjian1999-12-16
| | | | keeping parenlevel unchanged.
* Fix for psql from Peter.Bruce Momjian1999-12-11
|