summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-07-12Back out thread fix until I get clarification.Bruce Momjian
2004-07-12win32 doesn't support a static initializer for mutexes, thus the firstBruce Momjian
user must initialize the lock. The problem are concurrent "first" users - the pthread_mutex_t initialization must be synchronized. The current implementation is broken, the attached patches fixes that: mutex_initlock is a spinlock. If the pthread_mutex_t mutex is not initialized, then the spinlock is acquired, if the pthread_mutex_t is initialized if it's not yet initialized and then the spinlock is dropped. Manfred Spraul
2004-07-12Remove TABLESPACE option of CREATE SEQUENCE; sequences will now alwaysTom Lane
live in database or schema's default tablespace, as per today's discussion. Also, remove some unused keywords from the grammar (PATH, PENDANT, VERSION), and fix ALSO, which was added as a keyword but not added to the keyword classification lists, thus making it worse-than-reserved.
2004-07-12Fix library_path with canonicalization.Bruce Momjian
2004-07-12Fix username mismatch in initdb. Magnus.Bruce Momjian
2004-07-12The outer #define was forgotten. Attached patch adds it; please apply.Bruce Momjian
Alvaro
2004-07-12Canonicalize preload_libraries after it is split up, not before.Bruce Momjian
2004-07-11Cleanup for canonicalization fixes, from Tom.Bruce Momjian
2004-07-11ALTER TABLE SET TABLESPACE. Gavin Sherry, some rework by Tom Lane.Tom Lane
2004-07-11Remove postgresql.conf of 'info' as a valid client_min_messages level.Bruce Momjian
2004-07-11Use canonicalize_path for -D, GUC paths, and paths coming in fromBruce Momjian
environment variables.
2004-07-11Move TablespaceCreateDbspace() call into smgrcreate(), which is where itTom Lane
probably should have been to begin with; this is to cover cases like needing to recreate the per-db directory during WAL replay. Also, fix heap_create to force pg_class.reltablespace to be zero instead of the database's default tablespace; this makes the world safe for CREATE DATABASE to handle all tables in the default tablespace alike, as per previous discussion. And force pg_class.reltablespace to zero when creating a relation without physical storage (eg, a view); this avoids possibly having dangling references in this column after a subsequent DROP TABLESPACE.
2004-07-11Rename XLOG_BTREE_NEWPAGE xlog record type into XLOG_HEAP_NEWPAGE, andTom Lane
shift support code into heapam.c accordingly. This is in service of soon-to-be-committed ALTER TABLE SET TABLESPACE code that will want to use this same record type for both heaps and indexes. Theoretically I should have forced initdb for this, but in practice there is no change in xlog contents because CVS tip will never really emit this record type anyhow...
2004-07-11Use standard macro for psql binary file open. Add comment explainingBruce Momjian
control-z requirement.
2004-07-11Cause the format of BC timestamptz output to be 'datetime zone BC' ratherTom Lane
than 'datetime BC zone', because the former is accepted by the timestamptz input converter while the latter may not be depending on spacing. This is not a loss of compatibility w.r.t. 7.4 and before, because until very recently there was never a case where we'd output both zone and 'BC'.
2004-07-11Fix trim_trailing_separator() to not trim c:\ nor \\network\ on Win32.Bruce Momjian
2004-07-11Open files in binary mode on Win32 so control-z isn't seen as EOF.Bruce Momjian
2004-07-11Allow configuration files to be placed outside the data directory.Bruce Momjian
Add new postgresql.conf variables to point to data, pg_hba.conf, and pg_ident.conf files. Needs more documentation.
2004-07-10Defend against overrun of ExtraOptions array --- strictly paranoia,Tom Lane
since the person or script starting the postmaster has to be trusted anyway.
2004-07-10Check more test points (in fact, every week in 1970..2004) to get a moreTom Lane
accurate matching of our time zone to the system's zone. This method is able to distinguish Antarctica/Casey from Australia/Perth, as in Chris K-L's recent example; and it is not materially slower than before, because the extra checks generally don't get done against very many time zones. It seems possible that with this test we'd be able to correctly identify Windows timezones without looking at the timezone name, but I do not have the ability to try it.
2004-07-10Fix BSD-only coding in port.c (passing a local variable to putenv).Tom Lane
Also a quick but half-baked attempt to make trim_trailing_separator do the right thing with path consisting only of '/' --- still needs work for Windows I think.
2004-07-10Test HAVING condition before computing targetlist of an Aggregate node.Tom Lane
This is required by SQL spec to avoid failures in cases like SELECT sum(win)/sum(lose) FROM ... GROUP BY ... HAVING sum(lose) > 0; AFAICT we have gotten this wrong since day one. Kudos to Holger Jakobs for being the first to notice.
2004-07-06Add comment describing ereport() NOTICE/WARNING distinction.Bruce Momjian
2004-07-06Fix broken logic for pretty-printing parenthesis-suppression in UNIONTom Lane
et al.
2004-07-05Revert broken rpath addition.Tom Lane
2004-07-05Fix unchecked mallocs/strdups added by recent placeholder-config-varsTom Lane
patch. Thomas Hallgren
2004-07-05Added free() calls against memory leak in interval.c.Michael Meskes
2004-07-05- Fixed indicator in SET DESCRIPTOR.Michael Meskes
- Added special handling of descriptor header information. - Some code cleanup.
2004-07-05Allow plperl to compile with Perl 5.05.Bruce Momjian
Andrew Dunstan
2004-07-04Made sure SET DESCRIPTOR accepts all data types including constants.Michael Meskes
2004-07-04Okay, I've had it with answering newbie questions about why plpgsqlTom Lane
FOR loops are giving weird syntax errors. Restructure parsing of FOR loops so that the integer-loop-vs-query-loop decision is driven off the presence of '..' between IN and LOOP, rather than the presence of a matching record/row variable name. Hopefully this will make the behavior a bit more transparent.
2004-07-03Fix no-longer-correct bit-pushing in TransactionIdSetStatus, per Alvaro.Tom Lane
2004-07-02Add missing operators of the form interval-plus-datetime, as required forTom Lane
better SQL compliance in this area, per recent discussion. Mark related operators as commutators where possible. (The system doesn't actually care about commutator marking for operators not returning boolean, at the moment, but this seems forward-thinking and besides it made it easier to verify that we hadn't missed any.) Also, remove interval-minus-time and interval-minus-timetz operators. I'm not sure how these got in, but they are nonstandard and had very obviously broken behavior. (minus is not commutative in anyone's book.) I doubt anyone had ever used 'em, because we'd surely have gotten a bug report about it if so.
2004-07-02Andreas Pflug wrote:Joe Conway
From an idea of Bruce, the attached patch implements the function pg_tablespace_databases(oid) RETURNS SETOF oid which delivers as set of database oids having objects in the selected tablespace, enabling an admin to examine only the databases affecting the tablespace for objects instead of scanning all of them. initdb forced
2004-07-02Translation updatePeter Eisentraut
2004-07-01More paranoia in AtEOSubXact_SPI: don't assume we can safely use SPI_finishTom Lane
for cleaning up. It seems possible that the memory contexts SPI_finish would try to touch are already gone; and there's no need for SPI itself to delete them, since the containing contexts will surely be going away anyway at transaction end.
2004-07-01plperl update from Andrew Dunstan, deriving (I believe) from Command Prompt'sJoe Conway
plperlNG. Review and minor cleanup/improvements by Joe Conway. Summary of new functionality: - Shared data space and namespace. There is a new global variable %_SHARED that functions can use to store and save data between invocations of a function, or between different functions. Also, all trusted plperl function now share a common Safe container (this is an optimization, also), which they can use for storing non-lexical variables, functions, etc. - Triggers are now supported - Records can now be returned (as a hash reference) - Sets of records can now be returned (as a reference to an array of hash references). - New function spi_exec_query() provided for performing db functions or getting data from db. - Optimization for counting hash keys (Abhijit Menon-Sen) - Allow return of 'record' and 'setof record'
2004-07-01Further review of xact.c state machine for nested transactions. FixTom Lane
problems with starting subtransactions inside already-failed transactions. Clean up some comments.
2004-07-01Removed unused variable and added a typecast.Michael Meskes
2004-07-01Fix seriously nasty memory leak in new TransactionIdIsInProgress code.Tom Lane
2004-07-01Nested transactions. There is still much left to do, especially on theTom Lane
performance front, but with feature freeze upon us I think it's time to drive a stake in the ground and say that this will be in 7.5. Alvaro Herrera, with some help from Tom Lane.
2004-06-30Revert mistaken #include change, per Merlin Moncure.Tom Lane
2004-06-30Added SET DESCRIPTOR command.Michael Meskes
Note that this still has some bugs. The functionality is there though, it's just a matter of fixing the bugs now. Cleaned up error handling in preprocessor.
2004-06-28Arrays can be read as arrays or as character strings now.Michael Meskes
2004-06-28Remove some no-longer-needed #includes.Tom Lane
2004-06-28Fix some bogus code in ConstBit production --- it managed to work, butTom Lane
only because 14627 still contained the same node that BitWithoutLength had just produced. Make it more transparent. Also adjust ConstCharacter to be coded the same way for consistency.
2004-06-27- Only use typedefs inside their scope.Michael Meskes
- Variables that are out of scope, were not removed all the time. - Make a varchar NULL set everything to 0 when not using indicators. - Synced parser.
2004-06-27Translation updatesDennis Bjorklund
2004-06-26Adjust pgstat message definitions so that the target message size isTom Lane
specified in just one place and adhered to exactly, rather than just more or less. A side effect is to increase PGSTAT_ACTIVITY_SIZE (maximum reported query length) from 256 to nearly 1000.
2004-06-26Translation updatesDennis Bjorklund