aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* Add Win32-specific join ordering.Bruce Momjian2004-07-12
|
* Add blank line to new canonicalize_path file, which handles "a b\" properly.Bruce Momjian2004-07-12
|
* canonicalization adjustments.Bruce Momjian2004-07-12
|
* Put back canonicalization of PGDATA environment variable.Bruce Momjian2004-07-12
|
* Use strdup in pg_ctl for canonicalize_path on environment variable.Bruce Momjian2004-07-12
| | | | Simplify postmaster call too.
* This patch adds the following options to pg_dumpall, to be passed toBruce Momjian2004-07-12
| | | | | | | | | | | | | | pg_dump: -S, --superuser=NAME -O, --no-owner -X disable-dollar-quoting, --disable-dollar-quoting -X disable-triggers, --disable-triggers Christopher Kings-Lynne
* The attached patch, which incorporates the previous one sent andBruce Momjian2004-07-12
| | | | | | | | | | | | | | | | | | | | | currently unapplied regarding spi_internal.c, makes some additional fixes relating to return types, and also contains the fix for preventing the use of insecure versions of Safe.pm. There is one remaing return case that does not appear to work, namely return of a composite directly in a select, i.e. if foo returns some composite type, 'select * from foo()' works but 'select foo()' doesn't. We will either fix that or document it as a limitation. The function plperl_func_handler is a mess - I will try to get it cleaned up (and split up) in a subsequent patch, time permitting. Also, reiterating previous advice - this changes slightly the API for spi_exec_query - the returned object has either 2 or 3 members: 'status' (string) and 'proceesed' (int,- number of rows) and, if rows are returned, 'rows' (array of tuple hashes). Andrew Dunstan
* > win32 doesn't support a static initializer for mutexes, thus the firstBruce Momjian2004-07-12
| | | | | | | | | | | > 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
* Back out thread fix until I get clarification.Bruce Momjian2004-07-12
|
* win32 doesn't support a static initializer for mutexes, thus the firstBruce Momjian2004-07-12
| | | | | | | | | | | | 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
* Remove TABLESPACE option of CREATE SEQUENCE; sequences will now alwaysTom Lane2004-07-12
| | | | | | | 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.
* Fix library_path with canonicalization.Bruce Momjian2004-07-12
|
* Fix username mismatch in initdb. Magnus.Bruce Momjian2004-07-12
|
* The outer #define was forgotten. Attached patch adds it; please apply.Bruce Momjian2004-07-12
| | | | Alvaro
* Canonicalize preload_libraries after it is split up, not before.Bruce Momjian2004-07-12
|
* Cleanup for canonicalization fixes, from Tom.Bruce Momjian2004-07-11
|
* ALTER TABLE SET TABLESPACE. Gavin Sherry, some rework by Tom Lane.Tom Lane2004-07-11
|
* Remove postgresql.conf of 'info' as a valid client_min_messages level.Bruce Momjian2004-07-11
|
* Use canonicalize_path for -D, GUC paths, and paths coming in fromBruce Momjian2004-07-11
| | | | environment variables.
* Move TablespaceCreateDbspace() call into smgrcreate(), which is where itTom Lane2004-07-11
| | | | | | | | | | | | 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.
* Rename XLOG_BTREE_NEWPAGE xlog record type into XLOG_HEAP_NEWPAGE, andTom Lane2004-07-11
| | | | | | | | | | 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...
* Use standard macro for psql binary file open. Add comment explainingBruce Momjian2004-07-11
| | | | control-z requirement.
* Cause the format of BC timestamptz output to be 'datetime zone BC' ratherTom Lane2004-07-11
| | | | | | | 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'.
* Fix trim_trailing_separator() to not trim c:\ nor \\network\ on Win32.Bruce Momjian2004-07-11
|
* Open files in binary mode on Win32 so control-z isn't seen as EOF.Bruce Momjian2004-07-11
|
* Allow configuration files to be placed outside the data directory.Bruce Momjian2004-07-11
| | | | | | | Add new postgresql.conf variables to point to data, pg_hba.conf, and pg_ident.conf files. Needs more documentation.
* Defend against overrun of ExtraOptions array --- strictly paranoia,Tom Lane2004-07-10
| | | | | since the person or script starting the postmaster has to be trusted anyway.
* Check more test points (in fact, every week in 1970..2004) to get a moreTom Lane2004-07-10
| | | | | | | | | | | 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.
* Fix BSD-only coding in port.c (passing a local variable to putenv).Tom Lane2004-07-10
| | | | | | 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.
* Test HAVING condition before computing targetlist of an Aggregate node.Tom Lane2004-07-10
| | | | | | | 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.
* Add comment describing ereport() NOTICE/WARNING distinction.Bruce Momjian2004-07-06
|
* Fix broken logic for pretty-printing parenthesis-suppression in UNIONTom Lane2004-07-06
| | | | et al.
* Revert broken rpath addition.Tom Lane2004-07-05
|
* Fix unchecked mallocs/strdups added by recent placeholder-config-varsTom Lane2004-07-05
| | | | | | patch. Thomas Hallgren
* Added free() calls against memory leak in interval.c.Michael Meskes2004-07-05
|
* - Fixed indicator in SET DESCRIPTOR.Michael Meskes2004-07-05
| | | | | - Added special handling of descriptor header information. - Some code cleanup.
* Allow plperl to compile with Perl 5.05.Bruce Momjian2004-07-05
| | | | Andrew Dunstan
* Made sure SET DESCRIPTOR accepts all data types including constants.Michael Meskes2004-07-04
|
* Okay, I've had it with answering newbie questions about why plpgsqlTom Lane2004-07-04
| | | | | | | | 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.
* Fix no-longer-correct bit-pushing in TransactionIdSetStatus, per Alvaro.Tom Lane2004-07-03
|
* Add missing operators of the form interval-plus-datetime, as required forTom Lane2004-07-02
| | | | | | | | | | | | | 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.
* Andreas Pflug wrote:Joe Conway2004-07-02
| | | | | | | | | | 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
* Translation updatePeter Eisentraut2004-07-02
|
* More paranoia in AtEOSubXact_SPI: don't assume we can safely use SPI_finishTom Lane2004-07-01
| | | | | | | 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.
* plperl update from Andrew Dunstan, deriving (I believe) from Command Prompt'sJoe Conway2004-07-01
| | | | | | | | | | | | | | | | | | | 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'
* Further review of xact.c state machine for nested transactions. FixTom Lane2004-07-01
| | | | | problems with starting subtransactions inside already-failed transactions. Clean up some comments.
* Removed unused variable and added a typecast.Michael Meskes2004-07-01
|
* Fix seriously nasty memory leak in new TransactionIdIsInProgress code.Tom Lane2004-07-01
|
* Nested transactions. There is still much left to do, especially on theTom Lane2004-07-01
| | | | | | | 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.
* Revert mistaken #include change, per Merlin Moncure.Tom Lane2004-06-30
|