OSDN Git Service

pg-rex/syncrep.git
18 years agoAdd for ecpg:
Bruce Momjian [Mon, 6 Mar 2006 15:13:38 +0000 (15:13 +0000)]
Add for ecpg:

>  o Add COPY TO STDIN / STDOUT handling

18 years agoFix psql history handling so 'execute' backslash commands (\g)
Bruce Momjian [Mon, 6 Mar 2006 15:09:04 +0000 (15:09 +0000)]
Fix psql history handling so 'execute' backslash commands (\g)
remain as part of the multi-line query.

18 years agoUpdate:
Bruce Momjian [Mon, 6 Mar 2006 05:22:31 +0000 (05:22 +0000)]
Update:

< * %Disallow changing sequence characteristics like INCREMENT for SERIAL columns
> * %Disallow ALTER SEQUENCE changes for SERIAL sequences because pg_dump
>   does not dump the changes

18 years agoAdd:
Bruce Momjian [Mon, 6 Mar 2006 05:16:21 +0000 (05:16 +0000)]
Add:

> * %Disallow changing sequence characteristics like INCREMENT for SERIAL columns

18 years agoPrevent autovacuum from zeroing damaged pages.
Bruce Momjian [Mon, 6 Mar 2006 05:14:19 +0000 (05:14 +0000)]
Prevent autovacuum from zeroing damaged pages.

18 years agoin the docs, the function "ascii(text)" is described as
Bruce Momjian [Mon, 6 Mar 2006 04:53:50 +0000 (04:53 +0000)]
in the docs, the function "ascii(text)" is described as
returning "ASCII code of the first character of the argument"

(see
http://www.postgresql.org/docs/8.1/interactive/functions-string.html,
Table  9-6. "Other String Functions").

Presumably this should read "ASCII code of the first byte of the
argument",
which is what is returned when the argument is a multi-byte character
(although then with UTF-8 at least that might not necessarily be an
ASCII
code).

Ian Barwick

18 years agoIn psql, save history of backslash commands used in multi-line
Bruce Momjian [Mon, 6 Mar 2006 04:45:21 +0000 (04:45 +0000)]
In psql, save history of backslash commands used in multi-line
statements before the multi-line statement, rather than inside the
multi-line statement.

18 years agoPer recent discussion on -hackers, we should sometimes reorder the
Neil Conway [Sun, 5 Mar 2006 21:34:34 +0000 (21:34 +0000)]
Per recent discussion on -hackers, we should sometimes reorder the
columns of the grouping clause to avoid redundant sorts. The optimizer
is not currently capable of doing this, so this patch implements a
simple hack in the analysis phase (transformGroupClause): if any
subset of the GROUP BY clause matches a prefix of the ORDER BY list,
that prefix is moved to the front of the GROUP BY clause. This
shouldn't change the semantics of the query, and allows a redundant
sort to be avoided for queries like "GROUP BY a, b ORDER BY b".

18 years agoAdd:
Bruce Momjian [Sun, 5 Mar 2006 18:28:46 +0000 (18:28 +0000)]
Add:

>  o Port contrib/xml2

18 years agoPrepared queries for PLPerl, plus fixing a small plperl memory leak. Patch
Andrew Dunstan [Sun, 5 Mar 2006 16:40:51 +0000 (16:40 +0000)]
Prepared queries for PLPerl, plus fixing a small plperl memory leak. Patch
and docs from Dmitry Karasik, slightly editorialised.

18 years agoUpdate copyright for 2006. Update scripts.
Bruce Momjian [Sun, 5 Mar 2006 15:59:11 +0000 (15:59 +0000)]
Update copyright for 2006.  Update scripts.

18 years agoUpdate to 2006.
Bruce Momjian [Sun, 5 Mar 2006 15:21:45 +0000 (15:21 +0000)]
Update to 2006.

18 years agoDone:
Bruce Momjian [Sun, 5 Mar 2006 15:16:58 +0000 (15:16 +0000)]
Done:

>  o -Add "include file" functionality in postgresql.conf

18 years agoCheck for "msys" so it doesn't use 'con' by checking for an evironment
Bruce Momjian [Sun, 5 Mar 2006 05:33:12 +0000 (05:33 +0000)]
Check for "msys" so it doesn't use 'con' by checking for an evironment
variable.

18 years agoImprove STRINGS_H macro test for MSVC extensions.
Bruce Momjian [Sun, 5 Mar 2006 04:43:57 +0000 (04:43 +0000)]
Improve STRINGS_H macro test for MSVC extensions.

Add DLLIMPORT for V1 headers, in case Win32 don't export all symbols.

18 years agoImprove OS X shared-memory documentation: fix typos and provide a usable
Tom Lane [Sun, 5 Mar 2006 03:50:44 +0000 (03:50 +0000)]
Improve OS X shared-memory documentation: fix typos and provide a usable
example of /etc/sysctl.conf contents.

18 years agoSupport include directives in postgresql.conf.
Tom Lane [Sat, 4 Mar 2006 22:19:31 +0000 (22:19 +0000)]
Support include directives in postgresql.conf.
Patch by Joachim Wieland, somewhat reworked for clarity and portability.

18 years agoDeclare the arguments of AllocateFile() as const char *, not char *.
Tom Lane [Sat, 4 Mar 2006 21:32:47 +0000 (21:32 +0000)]
Declare the arguments of AllocateFile() as const char *, not char *.
This is consistent with the standard definition of fopen().

18 years agoIncorporate a couple of recent tuplesort.c improvements into tuplestore.c.
Tom Lane [Sat, 4 Mar 2006 19:30:12 +0000 (19:30 +0000)]
Incorporate a couple of recent tuplesort.c improvements into tuplestore.c.
In particular, ensure that enlargement of the memtuples[] array doesn't
fall foul of MaxAllocSize when work_mem is very large, and don't bother
enlarging it if that would force an immediate switch into 'tape' mode anyway.

18 years agoPrevent lazy_space_alloc from making requests that exceed MaxAllocSize,
Tom Lane [Sat, 4 Mar 2006 19:09:09 +0000 (19:09 +0000)]
Prevent lazy_space_alloc from making requests that exceed MaxAllocSize,
per report from Stefan Kaltenbrunner.

18 years agoPrevent sorting from requesting a SortTuple array that exceeds MaxAllocSize;
Tom Lane [Sat, 4 Mar 2006 19:05:06 +0000 (19:05 +0000)]
Prevent sorting from requesting a SortTuple array that exceeds MaxAllocSize;
we'll go over to disk-based sort if we reach that limit.
This fixes Stefan Kaltenbrunner's observation that sorting can suffer an
'invalid memory alloc request size' failure when sort_mem is set large
enough.  It's unfortunately not so easy to fix in 8.1 ...

18 years agoTighten up SJIS byte sequence check. Now we reject invalid SJIS byte
Tatsuo Ishii [Sat, 4 Mar 2006 10:57:35 +0000 (10:57 +0000)]
Tighten up SJIS byte sequence check. Now we reject invalid SJIS byte
sequence such as "0x95 0x27". Patches from Akio Ishida.
Also update copyright notice.

18 years agoAdd:
Bruce Momjian [Sat, 4 Mar 2006 05:02:03 +0000 (05:02 +0000)]
Add:

> * Allow FSM page return free space based on table clustering, to assist
>   in maintaining clustering?

18 years ago> gettimeofday.c:35: warning: integer constant is too large for "long"
Bruce Momjian [Sat, 4 Mar 2006 04:44:07 +0000 (04:44 +0000)]
> gettimeofday.c:35: warning: integer constant is too large for "long"
> type

Wouldn't it be better to use the UINT64CONST macro?  I realize this
file is Windows-only, but we do worry about more than one compiler
on that platform.

Kris Jurka

18 years ago> It doesn't say that only the listed commands acquire ACCESS EXCLUSIVE,
Bruce Momjian [Sat, 4 Mar 2006 04:41:36 +0000 (04:41 +0000)]
> It doesn't say that only the listed commands acquire ACCESS EXCLUSIVE,
> just that certain commands do.  TRUNCATE isn't shown.

Patch against HEAD to add TRUNCATE to the list of commands that aquire
ACCESS EXCLUSIVE.

Jim C. Nasby, Sr.

18 years agoUse DEVTTY as 'con' on Win32 as a replacement for /dev/tty.
Bruce Momjian [Sat, 4 Mar 2006 04:30:41 +0000 (04:30 +0000)]
Use DEVTTY as 'con' on Win32 as a replacement for /dev/tty.

18 years agoThat was a typo in my comment before the code (the nutshell
Bruce Momjian [Sat, 4 Mar 2006 03:47:29 +0000 (03:47 +0000)]
That was a typo in my comment before the code (the nutshell
descriptions after the code are correct). Only shmmax needs to be
multiples of the page size (at least, that's how I interpret the
Darwin code).

Chris Campbell

18 years agoThis patch fixes this warning.
Bruce Momjian [Fri, 3 Mar 2006 23:59:14 +0000 (23:59 +0000)]
This patch fixes this warning.

gettimeofday.c:35: warning: integer constant is too large for "long"
type

Kris Jurka

18 years agoAvoid trying to open /dev/tty on Win32. Some Win32 systems have
Bruce Momjian [Fri, 3 Mar 2006 23:49:12 +0000 (23:49 +0000)]
Avoid trying to open /dev/tty on Win32.  Some Win32 systems have
/dev/tty, but it isn't a device file and doesn't work as expected.

This fixes a known bug where psql does not prompt for a password on some
Win32 systems.

Backpatch to 8.1.X.

Robert Kinberg

18 years agoImprove pg_dump and psql to use libpq's newer COPY support routines,
Tom Lane [Fri, 3 Mar 2006 23:38:30 +0000 (23:38 +0000)]
Improve pg_dump and psql to use libpq's newer COPY support routines,
instead of the old deprecated ones.
Volkan Yazici, with some editorializing by moi.

18 years agoFixes for Win32-client only compiles.
Bruce Momjian [Fri, 3 Mar 2006 23:11:48 +0000 (23:11 +0000)]
Fixes for Win32-client only compiles.

Hiroshi Saito

18 years agoRename Online Backup to Continuous Archiving.
Bruce Momjian [Fri, 3 Mar 2006 22:02:08 +0000 (22:02 +0000)]
Rename Online Backup to Continuous Archiving.

18 years agoUpdate ipcclean to use try 'id' first for root check.
Bruce Momjian [Fri, 3 Mar 2006 21:52:37 +0000 (21:52 +0000)]
Update ipcclean to use try 'id' first for root check.

18 years agoAdd workaround so MSVC doesn't try to load strings.h, which it doesn't
Bruce Momjian [Fri, 3 Mar 2006 21:35:46 +0000 (21:35 +0000)]
Add workaround so MSVC doesn't try to load strings.h, which it doesn't
have.  This happens when MSVC uses pg_config.h generated by MinGW.

Per report from Charles F. I. Savage

18 years agoTeach PQcmdTuples() that a COPY command tag might contain a row count,
Tom Lane [Fri, 3 Mar 2006 20:57:32 +0000 (20:57 +0000)]
Teach PQcmdTuples() that a COPY command tag might contain a row count,
and tighten up its sanity checking of the tag as a safety measure.
Volkan Yazici.

18 years agoClarify macro layout for win32 IMPORT.
Bruce Momjian [Fri, 3 Mar 2006 20:52:36 +0000 (20:52 +0000)]
Clarify macro layout for win32 IMPORT.

18 years agoDone:
Bruce Momjian [Fri, 3 Mar 2006 20:43:00 +0000 (20:43 +0000)]
Done:

> * -Allow TRUNCATE ... CASCADE/RESTRICT

18 years agoDone:
Bruce Momjian [Fri, 3 Mar 2006 20:37:29 +0000 (20:37 +0000)]
Done:

<  o %Have COPY return the number of rows loaded/unloaded?
>  o -Have COPY return the number of rows loaded/unloaded?

18 years agoMake the COPY command return a command tag that includes the number of
Tom Lane [Fri, 3 Mar 2006 19:54:10 +0000 (19:54 +0000)]
Make the COPY command return a command tag that includes the number of
rows copied.  Backend side of Volkan Yazici's recent patch, with
corrections and documentation.

18 years agoDept. of second thoughts: rejigger the TRUNCATE ... CASCADE patch so that
Tom Lane [Fri, 3 Mar 2006 18:25:14 +0000 (18:25 +0000)]
Dept. of second thoughts: rejigger the TRUNCATE ... CASCADE patch so that
relations are still checked for permissions etc as soon as they are
opened.  The original form of the patch could hold exclusive lock for a
long time on relations that the user doesn't even have permissions to
access, let alone truncate.

18 years agoIn ipcclean, check LOGNAME only if USER is not set.
Bruce Momjian [Fri, 3 Mar 2006 16:49:21 +0000 (16:49 +0000)]
In ipcclean, check LOGNAME only if USER is not set.

Fixes problem with 'su' on some platforms.

18 years agoFix a typo.
Neil Conway [Fri, 3 Mar 2006 04:31:07 +0000 (04:31 +0000)]
Fix a typo.

18 years agoAdd CASCADE option to TRUNCATE. Joachim Wieland
Tom Lane [Fri, 3 Mar 2006 03:30:54 +0000 (03:30 +0000)]
Add CASCADE option to TRUNCATE.  Joachim Wieland

18 years agoAdd:
Bruce Momjian [Fri, 3 Mar 2006 03:13:04 +0000 (03:13 +0000)]
Add:

> * Allow FSM to return free space toward the beginning of the heap file,
>   in hopes that empty pages at the end can be truncated by VACUUM

18 years agoAppended is a small documentation patch that adds a note to the CREATE
Bruce Momjian [Fri, 3 Mar 2006 03:06:05 +0000 (03:06 +0000)]
Appended is a small documentation patch that adds a note to the CREATE
ROLE page, based on what Tom Lane told me here:

http://archives.postgresql.org/pgsql-general/2005-11/msg00998.php

Joachim Wieland

18 years agoAdd:
Bruce Momjian [Fri, 3 Mar 2006 02:38:57 +0000 (02:38 +0000)]
Add:

> * Add missing parameter handling in to_char()
>
>  http://archives.postgresql.org/pgsql-hackers/2005-12/msg00948.php
>

18 years agoAdd:
Bruce Momjian [Fri, 3 Mar 2006 02:18:09 +0000 (02:18 +0000)]
Add:

> * Allow to_date() and to_timestamp() accept localized month names

18 years agoAdd comment about localized month names for to_date and to_timestamp.
Bruce Momjian [Fri, 3 Mar 2006 02:17:30 +0000 (02:17 +0000)]
Add comment about localized month names for to_date and to_timestamp.

18 years agoArrange to call AbsorbFsyncRequests every so often while performing a
Tom Lane [Fri, 3 Mar 2006 00:02:02 +0000 (00:02 +0000)]
Arrange to call AbsorbFsyncRequests every so often while performing a
checkpoint in the bgwriter.  This forestalls overflow of the fsync request
queue, which is not fatal but causes considerable performance degradation
when it occurs (because backends then have to do their own fsyncs).  Per
patch from Itagaki Takahiro, modified a little bit by me.

18 years agoRemove unnecessary lo_lseek call in lo_open. Apparently there was once
Tom Lane [Thu, 2 Mar 2006 21:56:14 +0000 (21:56 +0000)]
Remove unnecessary lo_lseek call in lo_open.  Apparently there was once
a need for it back in the neolithic era, but it's certainly dead code in
any PG release we would recognize as such.  Since it forces an additional
network round trip to the backend, getting rid of it should provide some
small performance improvement for large-object-using clients.

18 years agoFix ancient error in large objects usage example: overwrite() subroutine
Tom Lane [Thu, 2 Mar 2006 21:49:09 +0000 (21:49 +0000)]
Fix ancient error in large objects usage example: overwrite() subroutine
was opening with INV_READ flag and then writing.  Prior to 8.1 the backend
did not reject this, but now it does.

18 years agoRepair oidvectorrecv and int2vectorrecv, which I broke while changing
Tom Lane [Thu, 2 Mar 2006 21:13:04 +0000 (21:13 +0000)]
Repair oidvectorrecv and int2vectorrecv, which I broke while changing
them to use array_recv :-(.  Per report from Tim Kordas.

18 years agoUpdate OS X shared memory documentation for 10.3.9 and later to use
Bruce Momjian [Thu, 2 Mar 2006 20:30:21 +0000 (20:30 +0000)]
Update OS X shared memory documentation for 10.3.9 and later to use
/etc/sysctl.conf.

Chris Campbell

18 years agoMark tsearch2 item as Tom's, not Teodor's.
Bruce Momjian [Thu, 2 Mar 2006 19:34:43 +0000 (19:34 +0000)]
Mark tsearch2 item as Tom's, not Teodor's.

18 years agoUpdate TODO.detail/qsort.
Bruce Momjian [Thu, 2 Mar 2006 19:21:05 +0000 (19:21 +0000)]
Update TODO.detail/qsort.

18 years agoUpdate TODO.detail/qsort.
Bruce Momjian [Thu, 2 Mar 2006 19:20:44 +0000 (19:20 +0000)]
Update TODO.detail/qsort.

18 years agoSignificantly improve ranking:
Teodor Sigaev [Thu, 2 Mar 2006 19:07:19 +0000 (19:07 +0000)]
Significantly improve ranking:
1) rank_cd now use weight of lexemes
2) rank_cd and rank can use any combination of normalization methods:
        no normalization
        normalization by log(length of document)
        -----/------- by length of document
        -----/------- by number of unique word in document
        -----/------- by log(number of unique word in document)
        -----/------- by number of covers (only rank_cd)

Improve cover's search.

TODO: changes in documentation

18 years agoUpdate TODO.detail/qsort.
Bruce Momjian [Thu, 2 Mar 2006 18:20:25 +0000 (18:20 +0000)]
Update TODO.detail/qsort.

18 years agoAdd to TODO.detail for qsort.
Bruce Momjian [Thu, 2 Mar 2006 18:18:13 +0000 (18:18 +0000)]
Add to TODO.detail for qsort.

18 years agoAdd:
Bruce Momjian [Thu, 2 Mar 2006 18:18:00 +0000 (18:18 +0000)]
Add:

> * Improve port/qsort() to handle sorts with 50% unique and 50% duplicate
>   value [qsort]
>
>   This involves choosing better pivot points for the quicksort.

18 years agoFix possible crash at transaction end when a plpgsql function is used and
Tom Lane [Thu, 2 Mar 2006 05:34:12 +0000 (05:34 +0000)]
Fix possible crash at transaction end when a plpgsql function is used and
then modified within the same transaction.  The code was using a linked list
of active PLpgSQL_expr structs, which was OK when it was written because
plpgsql never released any parse data structures for the life of the backend.
But since Neil fixed plpgsql's memory management, elements of the linked list
could be freed, leading to crash when the list is chased.  Per report and test
case from Kris Jurka.

18 years agoFix up pg_dump to emit shell-type definitions at the proper time, to
Tom Lane [Thu, 2 Mar 2006 01:18:26 +0000 (01:18 +0000)]
Fix up pg_dump to emit shell-type definitions at the proper time, to
make use of the recently added ability to create a shell type explicitly.

I also put in place some infrastructure to allow dump/no dump decisions
to be made separately for each database object, rather than the former
hardwired 'dump if in a dumpable schema' policy.  This was needed anyway
for shell types so now seemed a convenient time to do it.  The flexibility
isn't exposed to the user yet, but is ready for future extensions.

18 years agoWoops: also update the alternative "expected" files for contrib/cube's
Neil Conway [Wed, 1 Mar 2006 23:00:56 +0000 (23:00 +0000)]
Woops: also update the alternative "expected" files for contrib/cube's
regression tests to account for the new error message wording. It seems
today is not my day...

18 years agoUpdate text file.
Bruce Momjian [Wed, 1 Mar 2006 22:24:51 +0000 (22:24 +0000)]
Update text file.

18 years agoUpdate patch generation instructions.
Bruce Momjian [Wed, 1 Mar 2006 22:23:14 +0000 (22:23 +0000)]
Update patch generation instructions.

Robert Treat

18 years agoUpdate the expected regression test results to account for the changes to
Neil Conway [Wed, 1 Mar 2006 21:09:32 +0000 (21:09 +0000)]
Update the expected regression test results to account for the changes to
error messages I made yesterday -- thanks to Andrew Dunstan for reporting
this, and my apologies for missing it the first time.

18 years agoUpdate Japanese FAQ, backpatched to 8.1.X.
Bruce Momjian [Wed, 1 Mar 2006 20:31:29 +0000 (20:31 +0000)]
Update Japanese FAQ, backpatched to 8.1.X.

18 years agoAttached is a patch that replaces a bunch of places where StringInfos
Neil Conway [Wed, 1 Mar 2006 06:51:01 +0000 (06:51 +0000)]
Attached is a patch that replaces a bunch of places where StringInfos
are unnecessarily allocated on the heap rather than the stack. If the
StringInfo doesn't outlive the stack frame in which it is created,
there is no need to allocate it on the heap via makeStringInfo() --
stack allocation is faster.  While it's not a big deal unless the
code is in a critical path, I don't see a reason not to save a few
cycles -- using stack allocation is not less readable.

I also cleaned up a bit of code along the way: moved variable
declarations into a more tightly-enclosing scope where possible,
fixed some pointless copying of strings in dblink, etc.

18 years agoThis patch makes the error message strings throughout the backend
Neil Conway [Wed, 1 Mar 2006 06:30:32 +0000 (06:30 +0000)]
This patch makes the error message strings throughout the backend
more compliant with the error message style guide. In particular,
errdetail should begin with a capital letter and end with a period,
whereas errmsg should not. I also fixed a few related issues in
passing, such as fixing the repeated misspelling of "lexeme" in
contrib/tsearch2 (per Tom's suggestion).

18 years agoAdd pg_service.conf documentation for libpq.
Bruce Momjian [Wed, 1 Mar 2006 00:23:21 +0000 (00:23 +0000)]
Add pg_service.conf documentation for libpq.

18 years agoFix typo in comment.
Neil Conway [Tue, 28 Feb 2006 23:38:13 +0000 (23:38 +0000)]
Fix typo in comment.

18 years agoAllow the syntax CREATE TYPE foo, with no parameters, to permit explicit
Tom Lane [Tue, 28 Feb 2006 22:37:27 +0000 (22:37 +0000)]
Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit
creation of a shell type.  This allows a less hacky way of dealing with
the mutual dependency between a datatype and its I/O functions: make a
shell type, then make the functions, then define the datatype fully.
We should fix pg_dump to handle things this way, but this commit just deals
with the backend.

Martijn van Oosterhout, with some corrections by Tom Lane.

18 years agoBack out libpq changes for service --- not ready yet.
Bruce Momjian [Tue, 28 Feb 2006 22:35:35 +0000 (22:35 +0000)]
Back out libpq changes for service --- not ready yet.

18 years agoFix PG_VERSION_NUM for different awk -F handling.
Bruce Momjian [Tue, 28 Feb 2006 22:34:24 +0000 (22:34 +0000)]
Fix PG_VERSION_NUM for different awk -F handling.

18 years agoFix PG_VERSION_NUM awk -F parameter.
Bruce Momjian [Tue, 28 Feb 2006 21:59:19 +0000 (21:59 +0000)]
Fix PG_VERSION_NUM awk -F parameter.

18 years agoTweak the error message emitted when a void-returning PL/Python function
Neil Conway [Tue, 28 Feb 2006 20:56:14 +0000 (20:56 +0000)]
Tweak the error message emitted when a void-returning PL/Python function
does not return None, per suggestion from Tom.

18 years agoAllow PL/Python functions to return void, per gripe from James Robinson
Neil Conway [Tue, 28 Feb 2006 20:03:52 +0000 (20:03 +0000)]
Allow PL/Python functions to return void, per gripe from James Robinson
(I didn't use his patch, however). A void-returning PL/Python function
must return None (from Python), which is translated into a void datum
(and *not* NULL) for Postgres. I also added some regression tests for
this functionality.

18 years agoAdd:
Bruce Momjian [Tue, 28 Feb 2006 19:48:03 +0000 (19:48 +0000)]
Add:

* Split out libpq pgpass and environment documentation sections to make
  it easier for non-developers to find

18 years agoAdd PG_VERSION_NUM for use by 3rd party applications wanting to test the
Bruce Momjian [Tue, 28 Feb 2006 16:41:21 +0000 (16:41 +0000)]
Add PG_VERSION_NUM for use by 3rd party applications wanting to test the
backend version in C using > and < comparisons.

18 years agoTeach nodeSort and nodeMaterial to optimize out unnecessary overhead
Tom Lane [Tue, 28 Feb 2006 05:48:44 +0000 (05:48 +0000)]
Teach nodeSort and nodeMaterial to optimize out unnecessary overhead
when the passed-down eflags indicate they can.
Simon Riggs and Tom Lane

18 years agoExtend the ExecInitNode API so that plan nodes receive a set of flag
Tom Lane [Tue, 28 Feb 2006 04:10:28 +0000 (04:10 +0000)]
Extend the ExecInitNode API so that plan nodes receive a set of flag
bits indicating which optional capabilities can actually be exercised
at runtime.  This will allow Sort and Material nodes, and perhaps later
other nodes, to avoid unnecessary overhead in common cases.
This commit just adds the infrastructure and arranges to pass the correct
flag values down to plan nodes; none of the actual optimizations are here
yet.  I'm committing this separately in case anyone wants to measure the
added overhead.  (It should be negligible.)

Simon Riggs and Tom Lane

18 years agoClean up CREATE FUNCTION syntax usage in contrib and elsewhere, in
Peter Eisentraut [Mon, 27 Feb 2006 16:09:50 +0000 (16:09 +0000)]
Clean up CREATE FUNCTION syntax usage in contrib and elsewhere, in
particular get rid of single quotes around language names and old WITH ()
construct.

18 years agocontrib uninstall scripts
Peter Eisentraut [Mon, 27 Feb 2006 12:54:39 +0000 (12:54 +0000)]
contrib uninstall scripts

by David Fetter

18 years agoAdd mention that tid perhaps someday should be output as a record.
Bruce Momjian [Mon, 27 Feb 2006 01:41:16 +0000 (01:41 +0000)]
Add mention that tid perhaps someday should be output as a record.

18 years agoImprove sorting speed by pre-extracting the first sort-key column of
Tom Lane [Sun, 26 Feb 2006 22:58:12 +0000 (22:58 +0000)]
Improve sorting speed by pre-extracting the first sort-key column of
each tuple, as per my proposal of several days ago.  Also, clean up
sort memory management by keeping all working data in a separate memory
context, and refine the handling of low-memory conditions.

18 years agoFix a few minor typos in comments in PL/Perl.
Neil Conway [Sun, 26 Feb 2006 22:26:39 +0000 (22:26 +0000)]
Fix a few minor typos in comments in PL/Perl.

18 years agoDone:
Bruce Momjian [Sun, 26 Feb 2006 21:22:47 +0000 (21:22 +0000)]
Done:

> * -Add 'tid != tid ' operator for use in corruption recovery

18 years agoImplement the <> operator for the tid type. Original patch from Mark
Neil Conway [Sun, 26 Feb 2006 18:36:23 +0000 (18:36 +0000)]
Implement the <> operator for the tid type. Original patch from Mark
Kirkwood, minor improvements by Neil Conway. The regression tests have
been updated and the catversion has been bumped.

18 years agoMinor SGML work: add some more hyperlinks, where appropriate.
Neil Conway [Sun, 26 Feb 2006 03:20:46 +0000 (03:20 +0000)]
Minor SGML work: add some more hyperlinks, where appropriate.

18 years agoFix typo in comment.
Neil Conway [Sun, 26 Feb 2006 02:23:41 +0000 (02:23 +0000)]
Fix typo in comment.

18 years agoTODO updates:
Neil Conway [Sun, 26 Feb 2006 01:21:57 +0000 (01:21 +0000)]
TODO updates:

- "Add ON COMMIT capability to CREATE TABLE AS ... SELECT" is done

- "Allow PREPARE to automatically determine parameter types" is done

- "Clean up compiler warnings (especially with gcc version 4)" is done:
  AFAIK there are no remaining gcc4 compiler warnings to be fixed.

- Creating rules to do view updates is *not* an easy TODO item

18 years agoRemove ora2pg; now available at <http://www.samse.fr/GPL/ora2pg/>.
Peter Eisentraut [Sat, 25 Feb 2006 19:18:58 +0000 (19:18 +0000)]
Remove ora2pg; now available at <samse.fr/GPL/ora2pg/>.

18 years agoAdd intervals:
Bruce Momjian [Sat, 25 Feb 2006 16:34:52 +0000 (16:34 +0000)]
Add intervals:

>  o Allow infinite dates and intervals just like infinite timestamps

18 years agoFix computation of sample table size.
Bruce Momjian [Sat, 25 Feb 2006 04:28:54 +0000 (04:28 +0000)]
Fix computation of sample table size.

18 years agoRemove duplicate:
Bruce Momjian [Sat, 25 Feb 2006 03:40:14 +0000 (03:40 +0000)]
Remove duplicate:

<  o %Disallow dropping of an inherited constraint

18 years agoRemove mention of MIN/MAX() not using indexes.
Bruce Momjian [Fri, 24 Feb 2006 14:59:54 +0000 (14:59 +0000)]
Remove mention of MIN/MAX() not using indexes.

18 years agoMention that the archive history file has the wal start/stop file names.
Bruce Momjian [Fri, 24 Feb 2006 14:03:01 +0000 (14:03 +0000)]
Mention that the archive history file has the wal start/stop file names.

18 years agoThe Makefile was invoking perl scripts as ./script.pl. This fails when
Peter Eisentraut [Fri, 24 Feb 2006 13:25:44 +0000 (13:25 +0000)]
The Makefile was invoking perl scripts as ./script.pl.  This fails when
the script is not executable as UCS_to_most.pl is in CVS.  It also won't
pick up any custom setting of the perl version/location to use.  This
patch calls perl scripts like $(PERL) $(srcdir)/script.pl.

Kris Jurka

18 years agoMake restricted_exec feature for Windows more robust by using the environment
Andrew Dunstan [Fri, 24 Feb 2006 02:02:41 +0000 (02:02 +0000)]
Make restricted_exec feature for Windows more robust by using the environment
to pass the flag instead of the command line - some implementations of
getopt fail if getopt arguments are present after non-getopt arguments.

18 years agomake initdb -U username work as advertised; back out bogus patch at rev 1.42
Andrew Dunstan [Fri, 24 Feb 2006 00:55:49 +0000 (00:55 +0000)]
make initdb -U username work as advertised; back out bogus patch at rev 1.42
and supply real fix for problem it tried to address.