summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1999-12-14>From what I gather, this should be a little cleaner because theBruce Momjian
triggered function now returns the right datatype. -- Peter Eisentraut Sernanders väg 10:115
1999-12-14Depending on my interpreting (and programming) skills, this might solveBruce Momjian
anywhere from zero to two TODO items. * Allow flag to control COPY input/output of NULLs I got this: COPY table .... [ WITH NULL AS 'string' ] which does what you'd expect. The default is \N, otherwise you can use empty strings, etc. On Copy In this acts like a filter: every data item that looks like 'string' becomes a NULL. Pretty straightforward. This also seems to be related to * Make postgres user have a password by default If I recall this discussion correctly, the problem was actually that the default password for the postgres (or any) user is in fact "\N", because of the way copy is used. With this change, the file pg_pwd is copied out with nulls as empty strings, so if someone doesn't have a password, the password is just '', which one would expect from a new account. I don't think anyone really wants a hard-coded default password. Peter Eisentraut Sernanders väg 10:115
1999-12-13New LDOUT makefile variable for QNX os.Bruce Momjian
1999-12-13Prevent _deadcode from showing in ctags and mkidBruce Momjian
1999-12-13aggregate(DISTINCT ...) works, per SQL spec.Tom Lane
Note this forces initdb because of change of Aggref node in stored rules.
1999-12-12any_ordering_op()'s argument should be declared Oid not int.Tom Lane
1999-12-12I'm in TODO mood today ...Bruce Momjian
* Document/trigger/rule so changes to pg_shadow recreate pg_pwd I did it with a trigger and it seems to work like a charm. The function that already updates the file for create and alter user has been made a built-in "SQL" function and a trigger is created at initdb time. Comments around the pg_pwd updating function seem to be worried about this routine being called concurrently, but I really don't see a reason to worry about this. Verify for yourself. I guess we never had a system trigger before, so treat this with care, and feel free to adjust the nomenclature as well. -- Peter Eisentraut Sernanders väg 10:115
1999-12-12Meanwhile, database names with single quotes in names don't work very wellBruce Momjian
at all, and because of shell quoting rules this can't be fixed, so I put in error messages to that end. Also, calling create or drop database in a transaction block is not so good either, because the file system mysteriously refuses to roll back rm calls on transaction aborts. :) So I put in checks to see if a transaction is in progress and signal an error. Also I put the whole call in a transaction of its own to be able to roll back changes to pg_database in case the file system operations fail. The alternative location issues I posted recently were untouched, awaiting the outcome of that discussion. Other than that, this should be much more fool-proof now. The docs I cleaned up as well. Peter Eisentraut Sernanders väg 10:115
1999-12-11Fix for psql from Peter.Bruce Momjian
1999-12-11Allow ; in () in psql.Bruce Momjian
1999-12-11This takes care of TODO itemBruce Momjian
* pg_dump should preserve primary key information Also a couple of warnings removed. -- Peter Eisentraut Sernanders väg 10:115
1999-12-10Remove old file.Bruce Momjian
1999-12-10Update drop.sqlBruce Momjian
1999-12-10Rename destroy.sql to drop.sql.Bruce Momjian
1999-12-10Added global variable to have RI triggers overrideJan Wieck
time qualification of HeapTupleSatisfiesSnapshot() Jan
1999-12-10Fix memory overrun while setting ps statusTatsuo Ishii
1999-12-10Teach grammar and parser about aggregate(DISTINCT ...). No implementationTom Lane
yet, but at least we can give a better error message: regression=> select count(distinct f1) from int4_tbl; ERROR: aggregate(DISTINCT ...) is not implemented yet instead of 'parser: parse error at or near distinct'.
1999-12-10Remove unneeded action.Bruce Momjian
1999-12-10Fix LDREL.Bruce Momjian
1999-12-10This should fix the \e (\p, \g, ...) behaviour on an empty query buffer.Bruce Momjian
Also, minor tweakage of tab completion, and I hope the output is flushed on time now. -- Peter Eisentraut Sernanders väg 10:115
1999-12-10Rename several destroy* functions/tags to drop*.Bruce Momjian
1999-12-10Correct coredump in ALTER TABLE foo ADD(). Accept explicit NULL inTom Lane
typecasts, eg 'NULL::text'. Later parts of the parser don't like this yet, but I'll work on that next.
1999-12-10Update regression for new dropdb command.Bruce Momjian
1999-12-10Added a fflush(stdout) to the \p command required for theJan Wieck
multisession test tool. Jan
1999-12-09Make LD -r as macros that can be changed for QNX.Bruce Momjian
1999-12-09Update for QNX from Kardos, Dr. AndreaBruce Momjian
1999-12-09Replace generic 'Illegal use of aggregates' error message with one thatTom Lane
shows the specific ungrouped variable being complained of. Perhaps this will reduce user confusion...
1999-12-09Hi,Bruce Momjian
I was able to crash postgres 6.5.3 when I did an 'alter user' command. After I started a debugger I found the problem in the timezone handling of datetime (my Linux box lost its timezone information, that's how the problem occurred). Only 7 bytes are reserved for the timezone, without checking for boundaries. Attached is a patch that fixes this problem and emits a NOTICE if a timezone is encountered that is longer than MAXTZLEN bytes, like this: Jeroen van Vianen
1999-12-09Remove extra vacuum, from Peter.Bruce Momjian
1999-12-08Fixed concurrent visibility bug.Jan Wieck
Jan
1999-12-08Fix indexing of cidr.Bruce Momjian
1999-12-08CleanupBruce Momjian
1999-12-08Change $< to $+ in scripts Makefile, and clean up pg_encoding if logic.Bruce Momjian
1999-12-08*** empty log message ***Michael Meskes
1999-12-07Peter's file removals.Bruce Momjian
1999-12-07Okay, that should put us back in sync. These two patches (src & doc) areBruce Momjian
against the sources from one hour ago and contain all the portable and up to date stuff. A few other CVS "householding" things you might want to take care of: * Remove the src/bin/cleardbdir directory * Remove the file src/bin/psql/sql_help.h from the repository, as it is a derived file and is build by the release_prep. Peter Eisentraut
1999-12-07*** empty log message ***Michael Meskes
1999-12-07Clean up memory leakage in find_inheritors() by using pg_list listsTom Lane
(which are palloc'd) instead of DLLists (which are malloc'd). Not very significant, since this routine seldom has anything useful to do, but a leak is a leak...
1999-12-07Again updated INSIDE TODOJan Wieck
Jan
1999-12-07Added SET DEFAULT action for ON DELETE/UPDATEJan Wieck
Jan
1999-12-06Corrected TODO in sourceJan Wieck
Jan
1999-12-06Added ON DELETE/UPDATE SET NULLJan Wieck
Jan
1999-12-06Completed FOREIGN KEY syntax.Jan Wieck
Added functionality for automatic trigger creation during CREATE TABLE. Added ON DELETE RESTRICT and some others. Jan
1999-12-06Fix the case of -o givenTatsuo Ishii
1999-12-06Fix minor bugsTatsuo Ishii
1999-12-06pg_ctl: a script to start/stop/restart and report status of postmaster.Tatsuo Ishii
1999-12-06Fix bugs regarding pid file.Tatsuo Ishii
1999-12-06Update rules test for extra quoting in rule deparser.Tom Lane
1999-12-06Rule deparser needs to quote identifiers that are spelled the same asTom Lane
SQL keywords.
1999-12-05Fix echo -n and read -r in scripts.Bruce Momjian