summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-01-09Fix use of 'char' to hold result of getc, per bug report forwarded byTom Lane
Oliver Elphick. A few other minor cleanups while at it.
2002-01-09Fix portability problem (result of getopt is int, not char).Tom Lane
2002-01-09Remove clog copy.Bruce Momjian
2002-01-09Make improvements to pg_upgrade; is still disabled.Bruce Momjian
2002-01-09Add quotes around $bindir.Bruce Momjian
2002-01-09Fix include paths for case of VPATH build.Tom Lane
2002-01-08make install failed in VPATH build.Tom Lane
2002-01-08Fix copy-and-paste mistake exposed by gcc warning.Tom Lane
2002-01-08In a VPATH build, resultmap must be one of the symlinked files, elseTom Lane
pg_regress doesn't see it and you don't get any port-specific comparisons.
2002-01-08Revert last change (CFLAGS+=-g). Probably was a mistake...Peter Eisentraut
2002-01-08Remove shift/reduce conflicts introduced by last change.Tom Lane
2002-01-08Fix lpad() and rpad() to produce correct results in variable-lengthTom Lane
multibyte encodings.
2002-01-08Fixed array pointers, no longer using void * in arithmetics.Michael Meskes
2002-01-07Tweak LWLock algorithms so that an awakened waiter for a lock is notTom Lane
granted the lock when awakened; the signal now only means that the lock is potentially available. The waiting process must retry its attempt to get the lock when it gets to run. This allows the lock releasing process to re-acquire the lock later in its timeslice. Since LWLocks are usually held for short periods, it is possible for a process to acquire and release the same lock many times in a timeslice. The old spinlock-based implementation of these locks allowed for that; but the original coding of LWLock would force a process swap for each acquisition if there was any contention. Although this approach reopens the door to process starvation (a waiter might repeatedly fail to get the lock), the odds of that being a big problem seem low, and the performance cost of the previous approach is considerable.
2002-01-07Fixed parser to accept initializing expressions starting with "(".Michael Meskes
2002-01-07Editorial reviewPeter Eisentraut
2002-01-06If we fail to fork a new backend process, (try to) report the failureTom Lane
to the client before closing the connection. Before 7.2 this was done correctly, but new code would simply close the connection with no report to the client.
2002-01-06Add CHECK_FOR_INTERRUPTS() in various strategic spots, per commentsTom Lane
from Hiroshi.
2002-01-05Bugfix for bug reported by Marcus Better (marcus@dactylis.com). When preformingBarry Lind
a get on a bytea value the code was running the raw value from the server through character set conversion, which if the character set was SQL_ASCII would cause all 8bit characters to become ?'s.
2002-01-04Fix some incorrect and obsolete commentary.Tom Lane
2002-01-04Have to_date() call timestamptz_date() per Karel's email instructions.Thomas G. Lockhart
Fixes time zone problems introduced by Thomas' implementation of TIMESTAMP WITHOUT TIME ZONE which caused the behavior of the previously appropriate routine, timestamp_date(), to change for the worse in this context.
2002-01-04Replace #ifdef, #endif with # requires comment.Bruce Momjian
2002-01-03Require ownership permission for CREATE INDEX, per bug report.Tom Lane
Disallow CREATE INDEX on system catalogs, non-tables (views, sequences, etc). Disallow CREATE/DROP TRIGGER on system catalogs, non-tables. Disallow ALTER TABLE ADD/DROP CONSTRAINT on system catalogs. Disallow FOREIGN KEY reference to non-table. None of these things can actually work in the present system structure, but the code was letting them pass without complaint.
2002-01-03Instead of waiting a fixed amount of time for the test postmaster toTom Lane
start up, wait until a psql connection attempt succeeds. Per gripe from Jason Tishler.
2002-01-03SPI_cursor_open must copy by-reference parameter values into theTom Lane
portal's memory context, so that they will live as long as the portal does.
2002-01-03Shouldn't try to copy null datums with datumCopy.Tom Lane
2002-01-03Droplang didn't have test for -l, list. This was really broken too.Bruce Momjian
Took test from createlang.
2002-01-03Add mention that createlang.sh indirection not needed but kept for later.Bruce Momjian
2002-01-03droplang had same problem as createlang; default are backwards and didBruce Momjian
not work. Fixed to match createlang.
2002-01-03In createlang, make dbname optional, not langname, or rather, makeBruce Momjian
existing code of dbname optional actually work.
2002-01-03Guard against roundoff errors in new selectivity-estimation code,Tom Lane
per bug report from Laurette Cisneros.
2002-01-02Fix to_timestamp/to_date so that zero year input for Y, YY, or YYYTom Lane
formats will be taken as 2000, not year zero. Per bug report from Aasmund Midttun Godal. Fix from Karel Zak.
2002-01-01Do not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION()Tom Lane
macros, but only at explicit CHECK_FOR_INTERRUPTS() calls. Not clear whether overenthusiastic acceptance of interrupts accounts for any real bugs, but it definitely seems risky and unnecessary.
2002-01-01Fix race condition that could allow two concurrent transactionsTom Lane
to insert the same key into a supposedly unique index. The bug is of low probability, and may not explain any of the recent reports of duplicated rows; but a bug is a bug.
2002-01-01Rename TIME token to ISOTIME to eliminate conflict with gram.y parserThomas G. Lockhart
token. Seems to be isolated to datetime.c and datetime.h.
2001-12-30Make sure that all <ctype.h> routines are called with unsigned charTom Lane
values; it's not portable to call them with signed chars. I recall doing this for the last release, but a few more uncasted calls have snuck in.
2001-12-29Oops, only wanted datetime.c changes in there. lock stuff reversed out.Bruce Momjian
2001-12-29Fix newly introduced datetime.c compile failure; not enough parens.Bruce Momjian
2001-12-29Check a bit more carefully for preceeding ISO field tagsThomas G. Lockhart
when decoding date fields.
2001-12-29Rework the date/time parsing to tighten up some cases and to enable otherThomas G. Lockhart
cases which should have worked but did not. Now supports julian day (J2452271), ISO time labels (T040506) and various combinations of spaces and run-togethers of dates, times, and time zones. All regression tests pass, and I have more tests to add after the 7.2 release (don't want to require changes to the ancillary horology result files until after then).
2001-12-28Improve LOCK_DEBUG logging code for LWLocks.Tom Lane
2001-12-28Update from Serguei MokhovPeter Eisentraut
2001-12-28Ensure that all direct uses of spinlock-protected data structures useTom Lane
'volatile' pointers to access those structures, so that optimizing compilers will not decide to move the structure accesses outside of the spinlock-acquire-to-spinlock-release sequence. There are no known bugs in these uses at present, but based on bad experience with lwlock.c, it seems prudent to ensure that we protect these other uses too. Per pghackers discussion around 12-Dec. (Note: it should not be necessary to worry about structures protected by LWLocks, since the LWLock acquire and release operations are not inline macros.)
2001-12-28Oops, back out paren fix. That is for 7.3.Bruce Momjian
2001-12-28Add mention of Christof Petig for ecpg items.Bruce Momjian
2001-12-27Update from Serguei MokhovPeter Eisentraut
2001-12-24Place PAM before REJECT in sample file.Bruce Momjian
2001-12-23- Removed space_or_nl and line_end from pgc.l.Michael Meskes
- Fixed several bugs concerning arrays of structs including a memory allocation bug.
2001-12-23Fix mispeling ...Tom Lane
2001-12-21Czech translation updates from Karel ZakPeter Eisentraut