summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1999-12-16>Turning nextval and currval into keywords is not an acceptable way toBruce Momjian
>go about this. That will risk breaking existing applications that use >those names as column names. > >It should actually almost work to write sq.nextval as things stand, >because Postgres has for a long time considered table.function and >function(table) to be interchangeable notations for certain kinds of >functions. nextval doesn't seem to be one of that kind of function, >at the moment. I'd suggest leaving the grammar as it was, and taking a >look at ParseFuncOrColumn in parse_func.c to see if you can't persuade >it to accept the sequence functions in that style. OK, good point. I tried to implement it somewhere else and ended up extending transformAttr. Attached you'll find the patch. Jeroen van Vianen
1999-12-16Here's the Create/Alter/Drop Group stuff that's been really overdue. IBruce Momjian
didn't have time for documentation yet, but I'll write some. There are still some things to work out what happens when you alter or drop users, but the group stuff in and by itself is done. -- Peter Eisentraut Sernanders väg 10:115
1999-12-16Update for QNX.Bruce Momjian
1999-12-16autoconfBruce Momjian
1999-12-16*** empty log message ***Michael Meskes
1999-12-16Ethernet MAC addresses (macaddr type) are not compared correctly forBruce Momjian
equality. The lobits macro is wrong and extracts the wrong set of bits out of the structure. To exhibit the problem: select '000000:000000'::macaddr = '000000:110000'::macaddr ; ?column? -------- t (1 row) Daniel Boyd
1999-12-16I have done the QNX4 port with the current source tree. The number ofBruce Momjian
backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos
1999-12-14This patch solves a couple of memory leaks in ecpglib.c. The patch isBruce Momjian
ok for both the development tree (CVS) and for 6.5.3. Stephen Birch
1999-12-14fix_parsetree_attnums was not nearly smart enough about walking parseTom Lane
trees. Also rewrite find_all_inheritors() in a more intelligible style.
1999-12-14> From what I gather, this should be a little cleaner because theBruce Momjian
triggered > function now returns the right datatype. Oops, I got crossed up with Jan's improvements. Ignore this. -- Peter Eisentraut Sernanders väg 10:115 peter_e@gmx.net 75262 Uppsala
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