Commit Graph

159 Commits

Author SHA1 Message Date
Marc G. Fournier
917042f1c6 Remove rlstubs.[ch], since they weren't actually doing anything that couldn't
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-25 23:54:08 +00:00
Marc G. Fournier
aa46d53fa4 Okay, this should pretty much clean up the psql/readline/history mess.
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-25 22:52:08 +00:00
Marc G. Fournier
374b2b0639 Why can't everyone be standard? :(
Add some code to make psql happy with a system where there is *no*
history code available, but there is readline code...
1997-01-25 22:16:43 +00:00
Marc G. Fournier
d049cec4f5 Modifications to handle the situation where readline.h exists, but
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-25 21:58:08 +00:00
Marc G. Fournier
f389e9dfc2 Change how readline support is included in psql.c ...
See message to hackers@ mailing list concerning this...
1997-01-25 03:51:59 +00:00
Marc G. Fournier
cb31156b86 Have Makefile autoconf'd according to whether the system has
readline and associated libraries...
1997-01-24 02:35:27 +00:00
Bryan Henderson
a4ee68d1d4 Add link options for libpq library search. 1997-01-21 05:16:38 +00:00
Bruce Momjian
604f4a6928 Update handling of backslashes, and pg_user dump. 1997-01-19 10:15:59 +00:00
Bruce Momjian
3827f4e7f0 Remove blank lines. 1997-01-18 03:26:08 +00:00
Bruce Momjian
aa91f930a4 Removed unneeded custom shell script call. 1997-01-17 23:48:50 +00:00
Bruce Momjian
3d97a61a60 Added pg_dumpall to source tree. 1997-01-16 15:28:34 +00:00
Marc G. Fournier
f413385f07 Comment out LD_ADD and DPADD 1997-01-15 05:58:47 +00:00
Bruce Momjian
f56b4f1d59 Cleanup for DEBUG: removal in initdb.sh. 1997-01-14 03:07:15 +00:00
Bruce Momjian
6fafb4d370 Prevent initdb from showing vacuum statistics. 1997-01-14 03:02:06 +00:00
Bruce Momjian
febfe447a7 Oops, introduced a bug in EOF handling. Fix it. 1997-01-13 02:35:32 +00:00
Bruce Momjian
cac3463649 No EOF from psql when quiet mode. 1997-01-13 02:03:31 +00:00
Bruce Momjian
ce02ccf43d I've noticed that \i filename in 6.0beta prints the input file double-spaced.
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
1997-01-10 20:52:32 +00:00
Bruce Momjian
90ff767d14 I found the following bugs in the version 6.0 (dated 961229).
At least the first two should be fixed before the final release of 6.0.

1)      There is a mismatch between the type declared in the catalog for
        the input/output attributes of pg_type and the actual type of
        values stored in the table.  The type of typinput, typoutput,
        typsend and typreceive are declared oid (26) while the values are
        regproc (24).  The error was there also in previous versions but
        nobody noticed it until an Assert has been added in ExecEvalVar.
        The effect is that it is now impossible to replace the typoutput
        of existing data types with new procs.

2)      The identd hba fails after the first time because the data read
        from the identd socket is not zero-terminated and strlen reports
        an incorrect length if the stack contains garbage, which usually
        happens after the first connection has been made.

3)      The new initdb wants to create itself the data directory. This
        implies that the parent directory must be writable by postgres and
        this may not always be desirable.  A better solution would be to
        allow the directory to be created by root and then filled by initdb.
        It would also nice to have some reasonable default for PGLIB and
        PGDATA like the previous version did.  This applies also to the
        postmaster executable.
1997-01-10 17:40:07 +00:00
Marc G. Fournier
73b6ffbf76 Improvements to pg_dump to:
- dump Views

Submitted by: Keith Parks <emkxp01@mtcc.demon.co.uk>
1997-01-07 00:04:19 +00:00
Marc G. Fournier
046873ac90 REmove pg4_dump...its old stuff that is sooo out of date as to be useless... 1997-01-06 03:25:40 +00:00
Marc G. Fournier
ea7a26c84b Fixes:
This corrects the newline handling when using the readline library.

Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
1997-01-05 23:46:17 +00:00
Bruce Momjian
24632b0ee0 fix for previous fix 1997-01-02 07:07:32 +00:00
Bruce Momjian
6e2341a48e psql paren. with \r fix. 1997-01-02 06:45:25 +00:00
Bryan Henderson
9b94bcea21 Put $(CURSES_LIB) in Makefile.global to replace similar thing in psql/Makefile. 1996-12-30 23:19:48 +00:00
Bryan Henderson
7ab0ceb824 Check that PQendcopy succeeded. Issue error message if not. 1996-12-30 23:05:16 +00:00
Bruce Momjian
765dd2a4c0 explain change 1996-12-29 19:31:16 +00:00
Bruce Momjian
2d291ab093 Changed EXPLAIN option names. 1996-12-29 00:53:59 +00:00
Bruce Momjian
bbc0d47773 Fixed error where = should be ==. 1996-12-28 22:44:58 +00:00
Bruce Momjian
cb6cb7745d Here's the final set of patches to 6.0 (sup'd on 27/12/96) that allow a full
gmake of the code without interruption.

There's also some tidy-up of the MAXPATHLEN stuff based on the assumption that
all supported platforms have MAXPATHLEN defined in <sys/param.h>.

(The only unknowns for the above are AIX and IRIX5.)
1996-12-28 02:13:05 +00:00
Bryan Henderson
15526ff0ac Add messages to assist in problem diagnosis. Eliminate lines > 80 characters. 1996-12-27 23:12:57 +00:00
Bruce Momjian
e8f43854ac pq/signal() portability patch. Also psql copy prompt fix. 1996-12-26 22:08:34 +00:00
Bryan Henderson
7f00f11c01 Fix syntax of \copy in \? display. 1996-12-26 20:56:40 +00:00
Bruce Momjian
b1765f4637 Note the => changes to == after a connect and stays that way on subsequent
database changes.

To fix, apply the following patch:-

Keith Parks.
1996-12-26 17:52:46 +00:00
Bryan Henderson
d9e10180ee Add some quotes so it works on more shells. 1996-12-23 08:50:27 +00:00
Vadim B. Mikheev
cbb131570e if (settings->opt.fieldSep);
^ - deleted
                free(settings->opt.fieldSep);
1996-12-14 08:20:18 +00:00
Bruce Momjian
1b929d1749 Postgres95 to PostgreSQL. 1996-12-11 22:58:16 +00:00
Bryan Henderson
41b3674754 Add empty "dep:" target. 1996-12-10 03:40:23 +00:00
Bryan Henderson
9e60c1711d Monitor has been obsoleted by psql. 1996-12-09 01:55:51 +00:00
Bryan Henderson
9005a38bdb Change portname "sparc" to "sunos4" and change some portname dependencies to
feature dependencies.  Thanks Kurt J. Lidl.
1996-12-04 03:06:33 +00:00
Bruce Momjian
7980b8a5cc Fix for inclusion of new prompt output. 1996-12-01 20:28:39 +00:00
Bruce Momjian
440279e803 Add indicator for in quote or in query to prompt. 1996-11-30 03:41:20 +00:00
Bryan Henderson
7b4426eaea Throw some double quotes on the pile! 1996-11-29 06:24:14 +00:00
Bryan Henderson
f0e7004d29 Make strdup work for Ultrix. Thanks Erik Bertelsen 1996-11-28 03:32:18 +00:00
Bruce Momjian
134c35c761 no change 1996-11-27 13:48:23 +00:00
Bryan Henderson
9c0afeabb7 More stuff to make it compile on various ports. 1996-11-27 08:16:44 +00:00
Bryan Henderson
8cfe27dff0 OK, I think I've got the postconfig thing right now. 1996-11-26 08:12:39 +00:00
Bryan Henderson
93f722536f Whoops, redo Ultrix patch so the other ports still compile. 1996-11-26 07:39:11 +00:00
Bryan Henderson
46d58fba33 Make it compile on Ultrix. Thanks Erik Bertelson. 1996-11-26 03:20:35 +00:00
Bryan Henderson
f93f780269 -Werror fixes from D'Arcy. 1996-11-26 01:14:38 +00:00
Bryan Henderson
1d84088f50 Go back to $(postconfig...) from $(exec postconfig...) so it works on non-bash. 1996-11-25 05:51:50 +00:00