]> granicus.if.org Git - postgresql/log
postgresql
18 years agoPrint out diff status code when we think there's a hard failure.
Tom Lane [Thu, 20 Jul 2006 03:30:58 +0000 (03:30 +0000)]
Print out diff status code when we think there's a hard failure.
May help in debugging behavior on Windows.

18 years agoSuppress unused-variable compiler warning, per Andrew Dunstan.
Tom Lane [Thu, 20 Jul 2006 02:15:17 +0000 (02:15 +0000)]
Suppress unused-variable compiler warning, per Andrew Dunstan.

18 years agoFix pg_regress.c to report tests in a parallel group when they finish,
Tom Lane [Thu, 20 Jul 2006 02:10:00 +0000 (02:10 +0000)]
Fix pg_regress.c to report tests in a parallel group when they finish,
not when they're started.  This mimics a subtle point of the behavior
of the old shell script, and gives better feedback when watching the
tests.

18 years agoMake pg_regress.c get paths from pg_config_paths.h, instead of -D
Tom Lane [Thu, 20 Jul 2006 01:16:57 +0000 (01:16 +0000)]
Make pg_regress.c get paths from pg_config_paths.h, instead of -D
switches passed from the Makefile.  This looks like it will fix
problem with virtual vs real paths under msys.

18 years agoDon't try to truncate multixact SLRU files in checkpoints done during xlog
Tom Lane [Thu, 20 Jul 2006 00:46:42 +0000 (00:46 +0000)]
Don't try to truncate multixact SLRU files in checkpoints done during xlog
recovery.  In the first place, it doesn't work because slru's
latest_page_number isn't set up yet (this is why we've been hearing reports
of strange "apparent wraparound" log messages during crash recovery, but
only from people who'd managed to advance their next-mxact counters some
considerable distance from 0).  In the second place, it seems a bit unwise
to be throwing away data during crash recovery anwyway.  This latter
consideration convinces me to just disable truncation during recovery,
rather than computing latest_page_number and pushing ahead.

18 years agoUpdate GRANT USAGE on schema permission description.
Bruce Momjian [Wed, 19 Jul 2006 18:42:31 +0000 (18:42 +0000)]
Update GRANT USAGE on schema permission description.

18 years agopgcrypto merge cleanup:
Neil Conway [Wed, 19 Jul 2006 17:05:50 +0000 (17:05 +0000)]
pgcrypto merge cleanup:

  - Few README fixes
  - Keep imath Id string, put $PostgreSQL$ separately.

Patch from Marko Kreen.

18 years agoAdjust spawn_process() to avoid unnecessary overhead processes: we can
Tom Lane [Wed, 19 Jul 2006 17:02:59 +0000 (17:02 +0000)]
Adjust spawn_process() to avoid unnecessary overhead processes: we can
just exec instead of creating a subprocess.  This reduces process usage
from four processes per parallel test to two.  I have no idea whether
a comparable optimization is possible or useful in the Windows port.

18 years agoUpdate WIN32 quoting roles documentation.
Bruce Momjian [Wed, 19 Jul 2006 17:01:24 +0000 (17:01 +0000)]
Update WIN32 quoting roles documentation.

18 years agoAdjust pg_regress to print out the exact string given to system() when
Tom Lane [Wed, 19 Jul 2006 16:23:17 +0000 (16:23 +0000)]
Adjust pg_regress to print out the exact string given to system() when
'make install' or 'initdb' fails.  Also minor simplification of fgets()
usage --- fgets guarantees a trailing null anyway.

18 years agoAdd WIN32 compile suggestion to pginclude README.
Bruce Momjian [Wed, 19 Jul 2006 15:06:06 +0000 (15:06 +0000)]
Add WIN32 compile suggestion to pginclude README.

18 years agokill() is declared in <signal.h> per Single Unix Spec.
Tom Lane [Wed, 19 Jul 2006 05:21:57 +0000 (05:21 +0000)]
kill() is declared in <signal.h> per Single Unix Spec.

18 years agoTweak command quoting for Windows (I'd forgotten about SYSTEMQUOTE).
Tom Lane [Wed, 19 Jul 2006 04:50:57 +0000 (04:50 +0000)]
Tweak command quoting for Windows (I'd forgotten about SYSTEMQUOTE).

18 years agoRemove unnecessary inclusion of libpq into pg_regress --- overly
Tom Lane [Wed, 19 Jul 2006 04:02:31 +0000 (04:02 +0000)]
Remove unnecessary inclusion of libpq into pg_regress --- overly
enthusiastic copy and paste ...

18 years agoRewrite pg_regress as a C program instead of a shell script.
Tom Lane [Wed, 19 Jul 2006 02:37:00 +0000 (02:37 +0000)]
Rewrite pg_regress as a C program instead of a shell script.
This allows it to be used on Windows without installing mingw
(though you do still need 'diff'), and opens the door to future
improvements such as message localization.
Magnus Hagander and Tom Lane.

18 years agocopydir() and rmtree() need to use lstat, not stat, to behave as expected
Tom Lane [Tue, 18 Jul 2006 22:36:46 +0000 (22:36 +0000)]
copydir() and rmtree() need to use lstat, not stat, to behave as expected
with symlinks.  Noted while trying to use rmtree in new C-code pg_regress.

18 years agoThe Win32 DEF files that are generated for libpq contain the attribute
Bruce Momjian [Tue, 18 Jul 2006 22:18:08 +0000 (22:18 +0000)]
The Win32 DEF files that are generated for libpq contain the attribute
"DESCRIPTION", which is actually only allowed for device drivers. The
compilers ignore it with a warning - if we remove them, we get rid of
the warning.

Magnus Hagander

18 years agoAdd pginclude testing ideas.
Bruce Momjian [Tue, 18 Jul 2006 19:19:59 +0000 (19:19 +0000)]
Add pginclude testing ideas.

18 years agoDone:
Bruce Momjian [Tue, 18 Jul 2006 18:20:51 +0000 (18:20 +0000)]
Done:

        o -Display IN, INOUT, and OUT parameters in \df

18 years agoMark a few functions as static or NOT_USED.
Bruce Momjian [Tue, 18 Jul 2006 17:42:01 +0000 (17:42 +0000)]
Mark a few functions as static or NOT_USED.

18 years agoMake pg_regress a tad simpler and more general-purpose by removing its
Tom Lane [Tue, 18 Jul 2006 00:32:42 +0000 (00:32 +0000)]
Make pg_regress a tad simpler and more general-purpose by removing its
code to forcibly drop regressuser[1-4] and regressgroup[1-2].  Instead,
let the privileges.sql test do that for itself (this is made easy by
the recent addition of DROP ROLE IF EXISTS).  Per a recent patch proposed
by Joachim Wieland --- the rest of his patch is superseded by the
rewrite into C, but this is a good idea we should adopt.

18 years agoMention dependency problems caused by pgrminclude on include files.
Bruce Momjian [Mon, 17 Jul 2006 19:37:21 +0000 (19:37 +0000)]
Mention dependency problems caused by pgrminclude on include files.

18 years agoImprove psql's \df slash command to include the argument names and modes
Neil Conway [Mon, 17 Jul 2006 00:21:23 +0000 (00:21 +0000)]
Improve psql's \df slash command to include the argument names and modes
(OUT or INOUT) of the function. Patch from David Fetter, editorialization
by Neil Conway.

18 years agoMinor documentation tweak: in the tables of functions and operators,
Neil Conway [Sun, 16 Jul 2006 23:59:58 +0000 (23:59 +0000)]
Minor documentation tweak: in the tables of functions and operators,
don't include a space between the function name and the parenthesis
that begins its parameter list, for consistency.

18 years agoInclude libpq/pqcomm.h to ensure we have correct knowledge of
Tom Lane [Sun, 16 Jul 2006 20:28:01 +0000 (20:28 +0000)]
Include libpq/pqcomm.h to ensure we have correct knowledge of
HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN.  Per results of pgcheckdefines.

18 years agoIn a Windows backend, don't build src/port/pgsleep.c's version of
Tom Lane [Sun, 16 Jul 2006 20:17:04 +0000 (20:17 +0000)]
In a Windows backend, don't build src/port/pgsleep.c's version of
pg_usleep at all.  Instead call the replacement function in
port/win32/signal.c by that name.  Avoids tricky macro-redefinition
logic and suppresses a compiler warning; furthermore it ensures that
no one can accidentally use the non-signal-aware version of pg_usleep
in a Windows backend.

18 years agoEnsure that we retry rather than erroring out when send() or recv() return
Tom Lane [Sun, 16 Jul 2006 18:17:14 +0000 (18:17 +0000)]
Ensure that we retry rather than erroring out when send() or recv() return
EINTR; the stats code was failing to do this and so were a couple of places
in the postmaster.  The stats code assumed that recv() could not return EINTR
if a preceding select() showed the socket to be read-ready, but this is
demonstrably false with our Windows implementation of recv(), and it may
not be the case on all Unix variants either.  I think this explains the
intermittent stats regression test failures we've been seeing, as well
as reports of stats collector instability under high load on Windows.

Backpatch as far as 8.0.

18 years agoFix a few places where $Id$ and $Header$ CVS tags had crept into the
Tom Lane [Sun, 16 Jul 2006 02:44:01 +0000 (02:44 +0000)]
Fix a few places where $Id$ and $Header$ CVS tags had crept into the
source tree.  They should all be $PostgreSQL$ of course.

18 years agoFix lack of repeat-inclusion guard in win32 substitute sys/socket.h.
Tom Lane [Sun, 16 Jul 2006 01:35:28 +0000 (01:35 +0000)]
Fix lack of repeat-inclusion guard in win32 substitute sys/socket.h.
I think this explains the 'implicit declaration of function gai_strerror'
warnings visible in the current buildfarm report from snake: if
sys/socket.h is included again after getaddrinfo.h, the file would
merrily undefine the gai_strerror macro.

18 years agoPut back another not-so-unnecessary #include, per report from Hiroshi Saito.
Tom Lane [Sun, 16 Jul 2006 01:05:23 +0000 (01:05 +0000)]
Put back another not-so-unnecessary #include, per report from Hiroshi Saito.

18 years agoFix getDatumCopy(): don't use store_att_byval to copy into a Datum
Tom Lane [Sun, 16 Jul 2006 00:54:22 +0000 (00:54 +0000)]
Fix getDatumCopy(): don't use store_att_byval to copy into a Datum
variable (this accounts for regression failures on PPC64, and in fact
won't work on any big-endian machine).  Get rid of hardwired knowledge
about datum size rules; make it look just like datumCopy().

18 years agoImprove error message wording.
Tom Lane [Sun, 16 Jul 2006 00:52:05 +0000 (00:52 +0000)]
Improve error message wording.

18 years agoPut back some more not-so-unused-as-all-that #includes. This un-breaks
Tom Lane [Sat, 15 Jul 2006 15:47:17 +0000 (15:47 +0000)]
Put back some more not-so-unused-as-all-that #includes.  This un-breaks
the EXEC_BACKEND code on my machines, so hopefully it will fix the
Windows buildfarm members.

18 years agoFix some pgcrypto portability issues, per Marko Kreen.
Tom Lane [Sat, 15 Jul 2006 15:27:14 +0000 (15:27 +0000)]
Fix some pgcrypto portability issues, per Marko Kreen.

18 years agoFix some missing inclusions identified with new pgcheckdefines tool.
Tom Lane [Sat, 15 Jul 2006 03:35:21 +0000 (03:35 +0000)]
Fix some missing inclusions identified with new pgcheckdefines tool.

18 years agoFix some makefiles that fail to yield good results from 'make -qp'.
Tom Lane [Sat, 15 Jul 2006 03:33:14 +0000 (03:33 +0000)]
Fix some makefiles that fail to yield good results from 'make -qp'.
This doesn't really matter for ordinary building of Postgres, but it's
useful for automated checks, such as my just-committed pgcheckdefines.

18 years agoCreate a tool to catch #include omissions that might not result in any
Tom Lane [Sat, 15 Jul 2006 03:27:42 +0000 (03:27 +0000)]
Create a tool to catch #include omissions that might not result in any
compiler warning, specifically #ifdef or #if defined tests on symbols
that are defined in a file not included.  The results are a bit noisy
and require care to interpret, but it's a lot better than no tool at all.

18 years agoFix misguided removal of access/tuptoaster.h inclusion, per Kris Jurka.
Tom Lane [Fri, 14 Jul 2006 19:05:52 +0000 (19:05 +0000)]
Fix misguided removal of access/tuptoaster.h inclusion, per Kris Jurka.
I'm going to insist on reversion of this entire patch unless pgrminclude
is upgraded to a less broken state, but in the meantime let's get contrib
passing regression again.

18 years agoIn PGP public key tests, encrypt the secret key with AES not CAST5,
Tom Lane [Fri, 14 Jul 2006 17:47:40 +0000 (17:47 +0000)]
In PGP public key tests, encrypt the secret key with AES not CAST5,
so that the test passes with or without OpenSSL.  Marko Kreen

18 years agoFix another passel of include-file breakage. Kris Jurka, Tom Lane
Tom Lane [Fri, 14 Jul 2006 16:59:19 +0000 (16:59 +0000)]
Fix another passel of include-file breakage.  Kris Jurka, Tom Lane

18 years agoAdd dependency to fix parallel-make race condition. Alexander Dupuy
Tom Lane [Fri, 14 Jul 2006 16:45:43 +0000 (16:45 +0000)]
Add dependency to fix parallel-make race condition.  Alexander Dupuy

18 years agoHave find_static skip main() functions.
Bruce Momjian [Fri, 14 Jul 2006 14:59:00 +0000 (14:59 +0000)]
Have find_static skip main() functions.

18 years agoRemove 576 references of include files that were not needed.
Bruce Momjian [Fri, 14 Jul 2006 14:52:27 +0000 (14:52 +0000)]
Remove 576 references of include files that were not needed.

18 years agoFix a passel of recently-committed violations of the rule 'thou shalt
Tom Lane [Fri, 14 Jul 2006 05:28:29 +0000 (05:28 +0000)]
Fix a passel of recently-committed violations of the rule 'thou shalt
have no other gods before c.h'.  Also remove some demonstrably redundant
#include lines, mostly of <errno.h> which was added to c.h years ago.

18 years agoRevert part of recent include patch not ready for application.
Bruce Momjian [Fri, 14 Jul 2006 04:59:30 +0000 (04:59 +0000)]
Revert part of recent include patch not ready for application.

18 years agoAdd additional includes needed on some platforms.
Bruce Momjian [Fri, 14 Jul 2006 04:44:46 +0000 (04:44 +0000)]
Add additional includes needed on some platforms.

18 years agoMove CFLAGS for pginclude to the end of the command line.
Bruce Momjian [Fri, 14 Jul 2006 01:05:14 +0000 (01:05 +0000)]
Move CFLAGS for pginclude to the end of the command line.

18 years agoMinor doc tweak: replace a "--" with "&mdash;".
Neil Conway [Fri, 14 Jul 2006 00:13:05 +0000 (00:13 +0000)]
Minor doc tweak: replace a "--" with "&mdash;".

18 years agoReorder the entries in the function section of the manual, to ensure they
Neil Conway [Thu, 13 Jul 2006 23:59:47 +0000 (23:59 +0000)]
Reorder the entries in the function section of the manual, to ensure they
are alphabetically ordered. I believe the tables were correctly ordered in
the past, but some of them had subsequently regressed.

18 years agoMove math.h after postgresql.h
Bruce Momjian [Thu, 13 Jul 2006 20:14:12 +0000 (20:14 +0000)]
Move math.h after postgresql.h

18 years agoSkip stripping postgres_fe.h include file.
Bruce Momjian [Thu, 13 Jul 2006 18:25:09 +0000 (18:25 +0000)]
Skip stripping postgres_fe.h include file.

18 years agoMore include file adjustments.
Bruce Momjian [Thu, 13 Jul 2006 18:01:02 +0000 (18:01 +0000)]
More include file adjustments.

18 years agoMore include file adjustments.
Bruce Momjian [Thu, 13 Jul 2006 17:47:02 +0000 (17:47 +0000)]
More include file adjustments.

18 years agoAdjust /contrib for new include file contents.
Bruce Momjian [Thu, 13 Jul 2006 16:57:31 +0000 (16:57 +0000)]
Adjust /contrib for new include file contents.

18 years agoAllow include files to compile own their own.
Bruce Momjian [Thu, 13 Jul 2006 16:49:20 +0000 (16:49 +0000)]
Allow include files to compile own their own.

Strip unused include files out unused include files, and add needed
includes to C files.

The next step is to remove unused include files in C files.

18 years agoImprove pginclude tools to process include file usage by other include files.
Bruce Momjian [Thu, 13 Jul 2006 16:39:20 +0000 (16:39 +0000)]
Improve pginclude tools to process include file usage by other include files.

18 years agoRemove trailing comma from CreateStmtLikeOption enum definition. This
Neil Conway [Thu, 13 Jul 2006 15:09:57 +0000 (15:09 +0000)]
Remove trailing comma from CreateStmtLikeOption enum definition. This
is harmless, but it causes a warning with Tru64's cc.

18 years agoBe consistent about not using ECHO_N/ECHO_C (seems unnecessary on Linux).
Peter Eisentraut [Thu, 13 Jul 2006 14:44:33 +0000 (14:44 +0000)]
Be consistent about not using ECHO_N/ECHO_C (seems unnecessary on Linux).

18 years agoFix C++-style comment.
Neil Conway [Thu, 13 Jul 2006 04:52:51 +0000 (04:52 +0000)]
Fix C++-style comment.

18 years ago"Annual" pgcrypto update from Marko Kreen:
Neil Conway [Thu, 13 Jul 2006 04:15:25 +0000 (04:15 +0000)]
"Annual" pgcrypto update from Marko Kreen:

Few cleanups and couple of new things:

 - add SHA2 algorithm to older OpenSSL
 - add BIGNUM math to have public-key cryptography work on non-OpenSSL
   build.
 - gen_random_bytes() function

The status of SHA2 algoritms and public-key encryption can now be
changed to 'always available.'

That makes pgcrypto functionally complete and unless there will be new
editions of AES, SHA2 or OpenPGP standards, there is no major changes
planned.

18 years agoFix pgrminclude to work for stripping include files.
Bruce Momjian [Wed, 12 Jul 2006 16:28:27 +0000 (16:28 +0000)]
Fix pgrminclude to work for stripping include files.

18 years agoUpdate schema USAGE permission description.
Bruce Momjian [Wed, 12 Jul 2006 15:37:10 +0000 (15:37 +0000)]
Update schema USAGE permission description.

18 years agoClean up for warning:
Joe Conway [Wed, 12 Jul 2006 02:31:56 +0000 (02:31 +0000)]
Clean up for warning:
  fe-auth.c:573: warning: passing argument 1 of 'free' discards qualifiers
  from pointer target type
pg_krb5_authname used to return a (const char *) to memory allocated by
krb. Somewhere along the lines this was changed so that a copy was
made, returned, and freed instead. However the const modifier was never
removed.

18 years agoApply entab fix from Marko Kreen for these problems:
Alvaro Herrera [Tue, 11 Jul 2006 21:21:59 +0000 (21:21 +0000)]
Apply entab fix from Marko Kreen for these problems:

- halt.c did not include stdlib.h, thus missed exit() prototype
- Makefile ignores BINDIR for install.
- Makefile calls install with user/group args, thus failing for regular user.

While trying it I noticed that the Makefile does not support VPATH builds ...

18 years agoTweak fillfactor code as per my recent proposal. Fix nbtsort.c so that
Tom Lane [Tue, 11 Jul 2006 21:05:57 +0000 (21:05 +0000)]
Tweak fillfactor code as per my recent proposal.  Fix nbtsort.c so that
it can handle small fillfactors for ordinary-sized index entries without
failing on large ones; fix nbtinsert.c to distinguish leaf and nonleaf
pages; change the minimum fillfactor to 10% for all index types.

18 years agoImprove pginclude tests.
Bruce Momjian [Tue, 11 Jul 2006 20:51:25 +0000 (20:51 +0000)]
Improve pginclude tests.

18 years agoImprove pginclude compile flags.
Bruce Momjian [Tue, 11 Jul 2006 20:12:29 +0000 (20:12 +0000)]
Improve pginclude compile flags.

18 years agoUpdate pginclude documentation.
Bruce Momjian [Tue, 11 Jul 2006 19:52:12 +0000 (19:52 +0000)]
Update pginclude documentation.

18 years agoAdd support to GIN for =(anyarray,anyarray) operation
Teodor Sigaev [Tue, 11 Jul 2006 19:49:14 +0000 (19:49 +0000)]
Add support to GIN for =(anyarray,anyarray) operation

18 years agoHave pgrminclude process include files too.
Bruce Momjian [Tue, 11 Jul 2006 19:45:16 +0000 (19:45 +0000)]
Have pgrminclude process include files too.

18 years agoAdd $CFLAGS support to pgrminclude.
Bruce Momjian [Tue, 11 Jul 2006 19:34:34 +0000 (19:34 +0000)]
Add $CFLAGS support to pgrminclude.

18 years agoMove pgrminclude debug code to be more effective.
Bruce Momjian [Tue, 11 Jul 2006 19:31:29 +0000 (19:31 +0000)]
Move pgrminclude debug code to be more effective.

18 years agoImprove shell script wrapping.
Bruce Momjian [Tue, 11 Jul 2006 19:30:05 +0000 (19:30 +0000)]
Improve shell script wrapping.

18 years agoAdd comments to pgrminclude.
Bruce Momjian [Tue, 11 Jul 2006 19:25:41 +0000 (19:25 +0000)]
Add comments to pgrminclude.

18 years agoCorrect the description of the pg_get_viewdef() function. Do some nearby
Neil Conway [Tue, 11 Jul 2006 19:11:26 +0000 (19:11 +0000)]
Correct the description of the pg_get_viewdef() function. Do some nearby
SGML cleanup: sort table entries alphabetically.

18 years agoAlphabetically order reference to include files, "S"-"Z".
Bruce Momjian [Tue, 11 Jul 2006 18:26:11 +0000 (18:26 +0000)]
Alphabetically order reference to include files, "S"-"Z".

18 years agoAlphabetically order reference to include files, "N" - "S".
Bruce Momjian [Tue, 11 Jul 2006 17:26:59 +0000 (17:26 +0000)]
Alphabetically order reference to include files, "N" - "S".

18 years agoAlphabetically order reference to include files, "G" - "M".
Bruce Momjian [Tue, 11 Jul 2006 17:04:13 +0000 (17:04 +0000)]
Alphabetically order reference to include files, "G" - "M".

18 years agoAdd URL of code presentation to developers FAQ.
Bruce Momjian [Tue, 11 Jul 2006 17:02:16 +0000 (17:02 +0000)]
Add URL of code presentation to developers FAQ.

18 years agoGIN improvements
Teodor Sigaev [Tue, 11 Jul 2006 16:55:34 +0000 (16:55 +0000)]
GIN improvements
- Replace sorted array of entries in maintenance_work_mem to binary tree,
  this should improve create performance.
- More precisely calculate allocated memory, eliminate leaks
  with user-defined extractValue()
- Improve wordings in tsearch2

18 years agoSort reference of include files, "A" - "F".
Bruce Momjian [Tue, 11 Jul 2006 16:35:33 +0000 (16:35 +0000)]
Sort reference of include files, "A" - "F".

18 years agoRemove no-longer-needed configure test for krb5_encrypt(), per Jim Gates.
Tom Lane [Tue, 11 Jul 2006 16:14:50 +0000 (16:14 +0000)]
Remove no-longer-needed configure test for krb5_encrypt(), per Jim Gates.

18 years agoFix bug corrupting query in gist consistent function.
Teodor Sigaev [Tue, 11 Jul 2006 16:00:44 +0000 (16:00 +0000)]
Fix bug corrupting query in gist consistent function.
Thank to Mario Weilguni <mweilguni@sime.com> to discover a bug.

18 years agoReverse inclusion order of <ws2tcpip.h> and <winsock2.h>, per Dave Page.
Tom Lane [Tue, 11 Jul 2006 14:25:09 +0000 (14:25 +0000)]
Reverse inclusion order of <ws2tcpip.h> and <winsock2.h>, per Dave Page.

18 years agoAllow each C include file to compile on its own by including any needed
Bruce Momjian [Tue, 11 Jul 2006 13:54:25 +0000 (13:54 +0000)]
Allow each C include file to compile on its own by including any needed
header files.

18 years agoAdd libpq include directory to script.
Bruce Momjian [Tue, 11 Jul 2006 02:01:24 +0000 (02:01 +0000)]
Add libpq include directory to script.

18 years agoFix ALTER TABLE to check pre-existing NOT NULL constraints when rewriting
Tom Lane [Mon, 10 Jul 2006 22:10:39 +0000 (22:10 +0000)]
Fix ALTER TABLE to check pre-existing NOT NULL constraints when rewriting
a table.  Otherwise a USING clause that yields NULL can leave the table
violating its constraint (possibly there are other cases too).  Per report
from Alexander Pravking.

18 years agoAllow /contrib include files to compile on their own.
Bruce Momjian [Mon, 10 Jul 2006 22:06:11 +0000 (22:06 +0000)]
Allow /contrib include files to compile on their own.

18 years agoAdd #include code to prevent multiple inclusion.
Bruce Momjian [Mon, 10 Jul 2006 21:03:58 +0000 (21:03 +0000)]
Add #include code to prevent multiple inclusion.

18 years agoMove pthread-win32.h to /port, modify bcc/msvc makefiles.
Bruce Momjian [Mon, 10 Jul 2006 18:53:29 +0000 (18:53 +0000)]
Move pthread-win32.h to /port, modify bcc/msvc makefiles.

18 years agoRemove a few baby-C macros in fuzzystrmatch. Add a few missing includes.
Bruce Momjian [Mon, 10 Jul 2006 18:40:16 +0000 (18:40 +0000)]
Remove a few baby-C macros in fuzzystrmatch.  Add a few missing includes.

18 years agoImprove compile line for tool.
Bruce Momjian [Mon, 10 Jul 2006 18:39:32 +0000 (18:39 +0000)]
Improve compile line for tool.

18 years agoUpdate usage documention for pginclude
Bruce Momjian [Mon, 10 Jul 2006 17:13:34 +0000 (17:13 +0000)]
Update usage documention for pginclude

18 years agoAdd $CFLAGS handling to pgcompinclude.
Bruce Momjian [Mon, 10 Jul 2006 17:11:43 +0000 (17:11 +0000)]
Add $CFLAGS handling to pgcompinclude.

18 years agoFix 'find' args for pgcompinclude tool.
Bruce Momjian [Mon, 10 Jul 2006 17:08:38 +0000 (17:08 +0000)]
Fix 'find' args for pgcompinclude tool.

18 years agoUpdate schema GRANT USAGE description.
Bruce Momjian [Mon, 10 Jul 2006 16:48:46 +0000 (16:48 +0000)]
Update schema GRANT USAGE description.

18 years agoImprove tool coding.
Bruce Momjian [Mon, 10 Jul 2006 16:45:44 +0000 (16:45 +0000)]
Improve tool coding.

18 years agoImprove vacuum code to track minimum Xids per table instead of per database.
Alvaro Herrera [Mon, 10 Jul 2006 16:20:52 +0000 (16:20 +0000)]
Improve vacuum code to track minimum Xids per table instead of per database.
To this end, add a couple of columns to pg_class, relminxid and relvacuumxid,
based on which we calculate the pg_database columns after each vacuum.

We now force all databases to be vacuumed, even template ones.  A backend
noticing too old a database (meaning pg_database.datminxid is in danger of
falling behind Xid wraparound) will signal the postmaster, which in turn will
start an autovacuum iteration to process the offending database.  In principle
this is only there to cope with frozen (non-connectable) databases without
forcing users to set them to connectable, but it could force regular user
database to go through a database-wide vacuum at any time.  Maybe we should
warn users about this somehow.  Of course the real solution will be to use
autovacuum all the time ;-)

There are some additional improvements we could have in this area: for example
the vacuum code could be smarter about not updating pg_database for each table
when called by autovacuum, and do it only once the whole autovacuum iteration
is done.

I updated the system catalogs documentation, but I didn't modify the
maintenance section.  Also having some regression tests for this would be nice
but it's not really a very straightforward thing to do.

Catalog version bumped due to system catalog changes.

18 years agoImprove script by processing only C files.
Bruce Momjian [Mon, 10 Jul 2006 16:07:24 +0000 (16:07 +0000)]
Improve script by processing only C files.

18 years agoTesting commit stuff
Alvaro Herrera [Mon, 10 Jul 2006 15:50:02 +0000 (15:50 +0000)]
Testing commit stuff