summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-01-24Make functional index copy attstorage from the column data type, ratherTom Lane
than forcing 'plain'. This probably does not matter right now, but I think it needs to be consistent with the regular (not-functional) index case, where attstorage is copied from the underlying table. Clean up some other dead and infelicitous code too.
2001-01-23Narrow scope of critical section, per discussion 1/19/01.Tom Lane
2001-01-23Do _bt_wrtbuf() outside critical section, per discussion with Vadim 1/19.Tom Lane
2001-01-23The -R option didn't accept an argument, which made it kind of useless.Peter Eisentraut
2001-01-23Give 'a_expr ::= a_expr Op' production a slightly lower precedence thanTom Lane
Op, so that the sequence 'a_expr Op Op a_expr' will be parsed as a_expr Op (Op a_expr) not (a_expr Op) Op a_expr as formerly. In other words, prefer treating user-defined operators as prefix operators to treating them as postfix operators, when there is an ambiguity. Also clean up a couple of other infelicities in production priority assignment --- for example, BETWEEN wasn't being given the intended priority, but that of AND.
2001-01-23Subject: Bug in SQLForeignKeys()Bruce Momjian
Query used for checking foreign key triggers returns too many results when there're more than one foreign key in a table. It happens because only table's oid is used to link between pg_trigger with INSERT check and pg_trigger with UPDATE/DELETE check. I think there should be enough to add following conditions into WHERE clause of that query: AND pt.tgconstrname = pg_trigger.tgconstrname AND pt.tgconstrname = pg_trigger_1.tgconstrname /Constantin
2001-01-23Remove useless leftover global variable Ps_status_buffer.Peter Eisentraut
2001-01-23Moved database name handling to libecpg.Michael Meskes
2001-01-23Fix all the places that called heap_update() and heap_delete() withoutTom Lane
bothering to check the return value --- which meant that in case the update or delete failed because of a concurrent update, you'd not find out about it, except by observing later that the transaction produced the wrong outcome. There are now subroutines simple_heap_update and simple_heap_delete that should be used anyplace that you're not prepared to do the full nine yards of coping with concurrent updates. In practice, that seems to mean absolutely everywhere but the executor, because *noplace* else was checking.
2001-01-23Fix some int4->int32.Bruce Momjian
2001-01-23Remove no-longer-needed restriction against referencing systemTom Lane
attributes in a FieldSelect node --- all the places that manipulate these work just fine with system attribute numbers. OK, it's a new feature, so shoot me ...
2001-01-23Rename int4 to int32 in a few places.Bruce Momjian
2001-01-23Improve realloc() per idea from Karel Zak --- if chunk to be enlarged isTom Lane
at end of its block, maybe we can enlarge it in-place.
2001-01-22Remove rangechecks on errno; just call strerror unconditionally. ThisTom Lane
eliminates a raft of portability issues, including whether sys_nerr exists, whether the platform has any valid negative errnos, etc. The downside is minimal: errno shouldn't ever contain an invalid value anyway, and if it does, reasonably modern versions of strerror will not choke. This rangecheck idea seemed good at the time, but it's clearly a net loss, and I apologize to all concerned for having ever put it in.
2001-01-22Clean up lockmanager data structures some more, in preparation for plannedTom Lane
rewrite of deadlock checking. Lock holder objects are now reachable from the associated LOCK as well as from the owning PROC. This makes it practical to find all the processes holding a lock, as well as all those waiting on the lock. Also, clean up some of the grottier aspects of the SHMQueue API, and cause the waitProcs list to be stored in the intuitive direction instead of the nonintuitive one. (Bet you didn't know that the code followed the 'prev' link to get to the next waiting process, instead of the 'next' link. It doesn't do that anymore.)
2001-01-22Synced preproc.y with gram.y and added missing include file to pgc.l.Michael Meskes
2001-01-22Clean up per-tuple memory leaks in trigger firing and plpgsqlTom Lane
expression evaluation.
2001-01-22All the global memory contexts should be DLLIMPORT, if any are.Tom Lane
2001-01-21Put quotes around environment variables.Bruce Momjian
2001-01-21Back out patch for BLOB operations until approval.Bruce Momjian
2001-01-21Hello,Bruce Momjian
here is the patch attached which do check in each BLOB operation, if we are in transaction, and raise an error otherwise. This will prevent such mistakes. -- Sincerely Yours, Denis Perchine
2001-01-21Deal with C++ incompatibility of sys_nerr declaration by taking it outTom Lane
of c.h altogether, and putting it into the only places that use it (elog.c and exc.c), instead. Modify these routines to check for a NULL or empty-string return from strerror, too, since some platforms define strerror to return empty string for unknown errors (what a useless definition that is ...). Clean up some cruft in ExcPrint while at it.
2001-01-20Get rid of sunos4-only strerror() macro, and arrange to use theTom Lane
implementation in backend/port/strerror.c if configure finds no strerror in libc, same as we do for snprintf and inet_aton.
2001-01-20Remove no-longer-used STRERROR2 config symbol.Tom Lane
2001-01-20Get rid of initdb -t bugs by the simple expedient of getting rid ofTom Lane
initdb -t. This option is obsoleted by 7.1's ability to drop and recreate template1 during normal operation.
2001-01-20Give a good error message for what's likely to be a common syntax error,Tom Lane
namely omitting the alias clause for a sub-SELECT in FROM.
2001-01-20Add missing piece of BitString support to node output functions. ExpandPeter Eisentraut
and remove IsA_Value macro.
2001-01-20Still further tweaking of s_lock assembler: do not assume that leadingTom Lane
whitespace is unimportant in assembly code. Also, move VAX definition of typedef slock_t to port header files to be like all the other ports. Note that netbsd.h and openbsd.h are now identical, and I rather think that freebsd.h is broken in the places where it doesn't agree --- but I'll leave it to the freebsders to look at that.
2001-01-19From Jason Tishler <jt@dothill.com>Peter Eisentraut
* doc/FAQ_MSWIN: Update to be consistent with software -- mainly change comment from lack of Cygwin UNIX domain socket support and to list of current Cygwin UNIX domain socket issues. * src/include/config.h.in: Enable UNIX domain sockets for Cygwin. * src/include/port/win.h: Disable UNIX domain sockets for Cygwin b20.1. * src/test/regress/pg_regress.sh: Use UNIX domain sockets for Cygwin instead of TCP/IP.
2001-01-19Make critical sections (elog->crash) and interrupt holdoff sectionsTom Lane
into distinct concepts, per recent discussion on pghackers.
2001-01-19cleanup.Bruce Momjian
2001-01-19Remove ; and add \n to ASM code.Bruce Momjian
2001-01-19Update to reality.Peter Eisentraut
2001-01-19Make pqexpbuffer a little more robust, per bug report from Heinz Ekker.Tom Lane
2001-01-19Repair circular dependencies and broken clean commands.Peter Eisentraut
2001-01-19ChangePeter Eisentraut
#! /usr/local/bin/perl -w to #! /usr/bin/perl The path is probably more portable, and the -w was kind of silly for a six line script that produces two warnings as it stands.
2001-01-19ChangePeter Eisentraut
#! /usr/local/bin/python to #! /usr/bin/env python which is the recommended way.
2001-01-19> > I have attached a simple change to src/pl/plperl/plperl.c toBruce Momjian
> > enable the :bash_math opcodes. Currently plperl.c only > > enables the :default opcodes. This leave out about five of six > > math functions including sqrt(). Travis Bauer
2001-01-19Fri Jan 19 08:47:00 GMT 2001 peter@retep.org.ukPeter Mount
- Applied patch submitted by John Schutz <schutz@austin.rr.com> that fixed a bug with ANT's SQL functions (not needed for building but nice to have fixed).
2001-01-19Fix alignmentBruce Momjian
2001-01-19Fix univel asm alignmentBruce Momjian
2001-01-19Suppress compiler warning in MULTIBYTE code.Tom Lane
2001-01-19Suppress compiler warning in MULTIBYTE case.Tom Lane
2001-01-19Suppress unused-variable warning in non-Assert compilations.Tom Lane
2001-01-19Add __volatile__ to all __asm__ and make consistent indentingBruce Momjian
2001-01-19New ASM format:Bruce Momjian
/* * Standard __asm__ format: * * __asm__( * "command;" * "command;" * "command;" * : "=r"(_res) return value, in register * : "r"(lock) argument, 'lock pointer', in register * : "r0"); inline code uses this register */
2001-01-18Fix VAX ASM '1 f' -> '1f'.Bruce Momjian
2001-01-18Oops. Remove extra semicolon in comment.Bruce Momjian
2001-01-18Comment out xlrec in xact_redo - no support for file unlinking onVadim B. Mikheev
commit yet.
2001-01-18Forgot to cvs add UpdateableResultSet.java ;-)Peter Mount