CVS log for pgsql/src/backend/utils/init/globals.c

[BACK] Up to [PostgreSQL CVS Repository] / pgsql / src / backend / utils / init

Request diff between arbitrary revisions - Display revisions graphically


Keyword substitution: kv
Default branch: MAIN


Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Jan 2 16:57:56 2010 UTC (15 years, 8 months ago) by momjian
Branches: MAIN
CVS tags: REL9_1_ALPHA1, REL9_0_STABLE, REL9_0_RC1, REL9_0_BETA4, REL9_0_BETA3, REL9_0_BETA2, REL9_0_BETA1, REL9_0_ALPHA5_BRANCH, REL9_0_ALPHA5, REL9_0_ALPHA4_BRANCH, REL9_0_ALPHA4, REL9_0_0, HEAD
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +2 -2 lines
Update copyright for the year 2010.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon Aug 31 19:41:00 2009 UTC (16 years ago) by tgl
Branches: MAIN
CVS tags: REL8_5_ALPHA3_BRANCH, REL8_5_ALPHA3, REL8_5_ALPHA2_BRANCH, REL8_5_ALPHA2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +3 -3 lines
Change the autovacuum launcher to read pg_database directly, rather than
via the "flat files" facility.  This requires making it enough like a backend
to be able to run transactions; it's no longer an "auxiliary process" but
more like the autovacuum worker processes.  Also, its signal handling has
to be brought into line with backends/workers.  In particular, since it
now has to handle procsignal.c processing, the special autovac-launcher-only
signal conditions are moved to SIGUSR2.

Alvaro, with some cleanup from Tom

Revision 1.109: download - view: text, markup, annotated - select for diffs
Fri Aug 28 18:23:53 2009 UTC (16 years ago) by tgl
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +2 -2 lines
Remove useless code that propagated FrontendProtocol to a backend via a
PostgresMain switch.  In point of fact, FrontendProtocol is already set
in a backend process, since ProcessStartupPacket() is executed inside
the backend --- it hasn't been run by the postmaster for many years.
And if it were, we'd still certainly want FrontendProtocol to be set before
we get as far as PostgresMain, so that startup errors get reported in the
right protocol.

-v might have some future use in standalone backends, so I didn't go so
far as to remove the switch outright.

Also, initialize FrontendProtocol to 0 not PG_PROTOCOL_LATEST.  The only
likely result of presetting it like that is to mask failure-to-set-it
mistakes.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Tue May 5 19:59:00 2009 UTC (16 years, 4 months ago) by tgl
Branches: MAIN
CVS tags: REL8_5_ALPHA1_BRANCH, REL8_5_ALPHA1, REL8_4_STABLE, REL8_4_RC2, REL8_4_RC1, REL8_4_BETA2, REL8_4_4, REL8_4_3, REL8_4_2, REL8_4_1, REL8_4_0
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +2 -1 lines
Install a "dead man switch" to allow the postmaster to detect cases where
a backend has done exit(0) or exit(1) without having disengaged itself
from shared memory.  We are at risk for this whenever third-party code is
loaded into a backend, since such code might not know it's supposed to go
through proc_exit() instead.  Also, it is reported that under Windows
there are ways to externally kill a process that cause the status code
returned to the postmaster to be indistinguishable from a voluntary exit
(thank you, Microsoft).  If this does happen then the system is probably
hosed --- for instance, the dead session might still be holding locks.
So the best recovery method is to treat this like a backend crash.

The dead man switch is armed for a particular child process when it
acquires a regular PGPROC, and disarmed when the PGPROC is released;
these should be the first and last touches of shared memory resources
in a backend, or close enough anyway.  This choice means there is no
coverage for auxiliary processes, but I doubt we need that, since they
shouldn't be executing any user-provided code anyway.

This patch also improves the management of the EXEC_BACKEND
ShmemBackendArray array a bit, by reducing search costs.

Although this problem is of long standing, the lack of field complaints
seems to mean it's not critical enough to risk back-patching; at least
not till we get some more testing of this mechanism.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Thu Jan 1 17:23:51 2009 UTC (16 years, 8 months ago) by momjian
Branches: MAIN
CVS tags: REL8_4_BETA1
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +2 -2 lines
Update copyright for 2009.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Nov 9 00:28:35 2008 UTC (16 years, 10 months ago) by tgl
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +2 -1 lines
Add a new GUC variable called "IntervalStyle" that decouples interval output
from DateStyle, and create a new interval style that produces output matching
the SQL standard (at least for interval values that fall within the standard's
restrictions).  IntervalStyle is also used to resolve the conflict between the
standard and traditional Postgres rules for interpreting negative interval
input.

Ron Mayer

Revision 1.105: download - view: text, markup, annotated - select for diffs
Sun Feb 17 02:09:29 2008 UTC (17 years, 6 months ago) by tgl
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -2 lines
Replace time_t with pg_time_t (same values, but always int64) in on-disk
data structures and backend internal APIs.  This solves problems we've seen
recently with inconsistent layout of pg_control between machines that have
32-bit time_t and those that have already migrated to 64-bit time_t.  Also,
we can get out from under the problem that Windows' Unix-API emulation is not
consistent about the width of time_t.

There are a few remaining places where local time_t variables are used to hold
the current or recent result of time(NULL).  I didn't bother changing these
since they do not affect any cross-module APIs and surely all platforms will
have 64-bit time_t before overflow becomes an actual risk.  time_t should
be avoided for anything visible to extension modules, however.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Jan 1 19:45:53 2008 UTC (17 years, 8 months ago) by momjian
Branches: MAIN
CVS tags: REL8_3_STABLE, REL8_3_RC2, REL8_3_RC1, REL8_3_9, REL8_3_8, REL8_3_7, REL8_3_6, REL8_3_5, REL8_3_4, REL8_3_3, REL8_3_2, REL8_3_11, REL8_3_10, REL8_3_1, REL8_3_0
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +2 -2 lines
Update copyrights in source tree to 2008.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Thu Nov 15 21:14:40 2007 UTC (17 years, 9 months ago) by momjian
Branches: MAIN
CVS tags: REL8_3_BETA4, REL8_3_BETA3
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +2 -2 lines
pgindent run for 8.3.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Thu Aug 2 23:39:44 2007 UTC (18 years, 1 month ago) by adunstan
Branches: MAIN
CVS tags: REL8_3_BETA2, REL8_3_BETA1
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +2 -1 lines
Move session_start out of MyProcPort stucture and make it a global called MyStartTime,
so that we will be able to create a cookie for all processes for CSVlogs.
It is set wherever MyProcPid is set. Take the opportunity to remove the now
unnecessary session-only restriction on the %s and %c escapes in log_line_prefix.

Revision 1.101: download - view: text, markup, annotated - select for diffs
Mon Apr 16 18:29:54 2007 UTC (18 years, 4 months ago) by alvherre
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +7 -2 lines
Add a multi-worker capability to autovacuum.  This allows multiple worker
processes to be running simultaneously.  Also, now autovacuum processes do not
count towards the max_connections limit; they are counted separately from
regular processes, and are limited by the new GUC variable
autovacuum_max_workers.

The launcher now has intelligence to launch workers on each database every
autovacuum_naptime seconds, limited only on the max amount of worker slots
available.

Also, the global worker I/O utilization is limited by the vacuum cost-based
delay feature.  Workers are "balanced" so that the total I/O consumption does
not exceed the established limit.  This part of the patch was contributed by
ITAGAKI Takahiro.

Per discussion.

Revision 1.100: download - view: text, markup, annotated - select for diffs
Fri Jan 5 22:19:44 2007 UTC (18 years, 8 months ago) by momjian
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +2 -2 lines
Update CVS HEAD for 2007 copyright.  Back branches are typically not
back-stamped for this.

Revision 1.99: download - view: text, markup, annotated - select for diffs
Wed Oct 4 00:30:02 2006 UTC (18 years, 11 months ago) by momjian
Branches: MAIN
CVS tags: REL8_2_STABLE, REL8_2_RC1, REL8_2_BETA3, REL8_2_BETA2, REL8_2_9, REL8_2_8, REL8_2_7, REL8_2_6, REL8_2_5, REL8_2_4, REL8_2_3, REL8_2_2, REL8_2_17, REL8_2_16, REL8_2_15, REL8_2_14, REL8_2_13, REL8_2_12, REL8_2_11, REL8_2_10, REL8_2_1, REL8_2_0
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +2 -2 lines
pgindent run for 8.2.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue May 2 11:28:55 2006 UTC (19 years, 4 months ago) by teodor
Branches: MAIN
CVS tags: REL8_2_BETA1
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +3 -1 lines
GIN: Generalized Inverted iNdex.
text[], int4[], Tsearch2 support for GIN.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sun Mar 5 15:58:46 2006 UTC (19 years, 6 months ago) by momjian
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -2 lines
Update copyright for 2006.  Update scripts.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Jul 4 04:51:50 2005 UTC (20 years, 2 months ago) by tgl
Branches: MAIN
CVS tags: REL8_1_STABLE, REL8_1_9, REL8_1_8, REL8_1_7, REL8_1_6, REL8_1_5, REL8_1_4, REL8_1_3, REL8_1_21, REL8_1_20, REL8_1_2, REL8_1_19, REL8_1_18, REL8_1_17, REL8_1_16, REL8_1_15, REL8_1_14, REL8_1_13, REL8_1_12, REL8_1_11, REL8_1_10, REL8_1_1, REL8_1_0RC1, REL8_1_0BETA4, REL8_1_0BETA3, REL8_1_0BETA2, REL8_1_0BETA1, REL8_1_0
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +13 -7 lines
Arrange for the postmaster (and standalone backends, initdb, etc) to
chdir into PGDATA and subsequently use relative paths instead of absolute
paths to access all files under PGDATA.  This seems to give a small
performance improvement, and it should make the system more robust
against naive DBAs doing things like moving a database directory that
has a live postmaster in it.  Per recent discussion.

Revision 1.95: download - view: text, markup, annotated - select for diffs
Fri Dec 31 22:01:40 2004 UTC (20 years, 8 months ago) by pgsql
Branches: MAIN
CVS tags: REL8_0_STABLE, REL8_0_9, REL8_0_8, REL8_0_7, REL8_0_6, REL8_0_5, REL8_0_4, REL8_0_3, REL8_0_25, REL8_0_24, REL8_0_23, REL8_0_22, REL8_0_21, REL8_0_20, REL8_0_2, REL8_0_19, REL8_0_18, REL8_0_17, REL8_0_16, REL8_0_15, REL8_0_14, REL8_0_13, REL8_0_12, REL8_0_11, REL8_0_10, REL8_0_1, REL8_0_0RC5, REL8_0_0RC4, REL8_0_0RC3, REL8_0_0
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -2 lines

Tag appropriate files for rc3

Also performed an initial run through of upgrading our Copyright date to
extend to 2005 ... first run here was very simple ... change everything
where: grep 1996-2004 && the word 'Copyright' ... scanned through the
generated list with 'less' first, and after, to make sure that I only
picked up the right entries ...

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sun Aug 29 05:06:50 2004 UTC (21 years ago) by momjian
Branches: MAIN
CVS tags: REL8_0_0RC2, REL8_0_0RC1, REL8_0_0BETA5, REL8_0_0BETA4, REL8_0_0BETA3, REL8_0_0BETA2
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +5 -4 lines
Pgindent run for 8.0.

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Aug 29 04:12:54 2004 UTC (21 years ago) by momjian
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +2 -2 lines
Update copyright to 2004.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Aug 6 04:15:09 2004 UTC (21 years, 1 month ago) by momjian
Branches: MAIN
CVS tags: REL8_0_0BETA1
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +2 -2 lines
Rename vacuum_cost_naptime to vacuum_cost_delay, with agreement from Jan.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri Jun 18 06:13:54 2004 UTC (21 years, 2 months ago) by tgl
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -1 lines
Tablespaces.  Alternate database locations are dead, long live tablespaces.

There are various things left to do: contrib dbsize and oid2name modules
need work, and so does the documentation.  Also someone should think about
COMMENT ON TABLESPACE and maybe RENAME TABLESPACE.  Also initlocation is
dead, it just doesn't know it yet.

Gavin Sherry and Tom Lane.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun May 30 17:58:12 2004 UTC (21 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +2 -2 lines
Paranoia: ensure MyBackendId is InvalidBackendId in a process that has
never executed SIBackendInit().

Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat May 29 22:48:21 2004 UTC (21 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -1 lines
Separate out bgwriter code into a logically separate module, rather
than being random pieces of other files.  Give bgwriter responsibility
for all checkpoint activity (other than a post-recovery checkpoint);
so this child process absorbs the functionality of the former transient
checkpoint and shutdown subprocesses.  While at it, create an actual
include file for postmaster.c, which for some reason never had its own
file before.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri May 28 05:13:15 2004 UTC (21 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +9 -5 lines
Code review for EXEC_BACKEND changes.  Reduce the number of #ifdefs by
about a third, make it work on non-Windows platforms again.  (But perhaps
I broke the WIN32 code, since I have no way to test that.)  Fold all the
paths that fork postmaster child processes to go through the single
routine SubPostmasterMain, which takes care of resurrecting the state that
would normally be inherited from the postmaster (including GUC variables).
Clean up some places where there's no particularly good reason for the
EXEC and non-EXEC cases to work differently.  Take care of one or two
FIXMEs that remained in the code.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue May 18 03:36:36 2004 UTC (21 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -1 lines
Clean up some relative path install issues with Claudio's help.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon May 17 14:35:32 2004 UTC (21 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +2 -1 lines
Reorganize code to allow path-relative installs.

Create new get_* functions to access compiled-in paths and adjust if
relative installs are to be used.

Clean up substitute_libpath_macro() code.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu May 13 22:45:03 2004 UTC (21 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -3 lines
Reorganize backend code to more cleanly manage executable names and
backend startup.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Tue Feb 10 03:42:45 2004 UTC (21 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -3 lines
Centralize implementation of delay code by creating a pg_usleep()
subroutine in src/port/pgsleep.c.  Remove platform dependencies from
miscadmin.h and put them in port.h where they belong.  Extend recent
vacuum cost-based-delay patch to apply to VACUUM FULL, ANALYZE, and
non-btree index vacuuming.

By the way, where is the documentation for the cost-based-delay patch?

Revision 1.83: download - view: text, markup, annotated - select for diffs
Fri Feb 6 19:36:18 2004 UTC (21 years, 7 months ago) by wieck
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +9 -1 lines
Cost based vacuum delay feature.

Jan

Revision 1.82: download - view: text, markup, annotated - select for diffs
Tue Feb 3 17:34:03 2004 UTC (21 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -3 lines
Rename SortMem and VacuumMem to work_mem and maintenance_work_mem.
Make btree index creation and initial validation of foreign-key constraints
use maintenance_work_mem rather than work_mem as their memory limit.
Add some code to guc.c to allow these variables to be referenced by their
old names in SHOW and SET commands, for backwards compatibility.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Wed Jan 28 21:02:40 2004 UTC (21 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +13 -3 lines
Review uses of IsUnderPostmaster, change some tests to look at
whereToSendOutput instead because they are really inquiring about
the correct client communication protocol.  Update some comments.
This is pointing towards supporting regular FE/BE client protocol
in a standalone backend, per discussion a month or so back.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon Jan 26 22:59:53 2004 UTC (21 years, 7 months ago) by momjian
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +3 -1 lines
[all] Removed call to getppid in SendPostmasterSignal, replacing with a
PostmasterPid variable, which gets set (early) in PostmasterMain
getppid would not be the postmaster?

[fork/exec] Implements processCancelRequest by keeping an array of

pid/cancel_key structs in shared mem

[fork/exec] Moves AttachSharedMemoryAndSemaphores call for backends into
SubPostmasterMain

[win32] Implements reaper/waitpid by keeping an arrays of children
pids,handles in postmaster local mem
      - this item is largely untested, for reasons which should be
obvious, but appears sound

[win32/all] Added extern for pgpipe in Win32 case, and changed the second
pipe call (which seems to have been missed earlier) to pgpipe

[win32] #define'd ftruncate to chsize in the Win32 case

[win32] PG_USLEEP for Win32 has a misplaced paren. Fixed.

[win32] DLLIMPORT handling for MingW case


Claudio Natoli

Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Jan 26 22:54:57 2004 UTC (21 years, 7 months ago) by momjian
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +1 -3 lines
Back out win32 patch so we can apply it separately.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Jan 26 22:51:56 2004 UTC (21 years, 7 months ago) by momjian
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -1 lines
Attached is a patch that fixes some trivial typos and alignment.  Please
apply.

Alvaro Herrera

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jan 6 17:36:31 2004 UTC (21 years, 8 months ago) by neilc
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +1 -3 lines
Remove unused 'noversion' command-line option processing from the
backend.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Nov 29 19:52:01 2003 UTC (21 years, 9 months ago) by pgsql
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +1 -1 lines

$Header: -> $PostgreSQL Changes ...

Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 7 04:36:56 2003 UTC (22 years ago) by momjian
Branches: WIN32_DEV
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +2 -2 lines
Update this branch to match CVS head, includes WIN32 improvements.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Aug 26 15:38:25 2003 UTC (22 years ago) by tgl
Branches: MAIN
CVS tags: REL7_4_STABLE, REL7_4_RC2, REL7_4_RC1, REL7_4_BETA5, REL7_4_BETA4, REL7_4_BETA3, REL7_4_BETA2, REL7_4_9, REL7_4_8, REL7_4_7, REL7_4_6, REL7_4_5, REL7_4_4, REL7_4_3, REL7_4_29, REL7_4_28, REL7_4_27, REL7_4_26, REL7_4_25, REL7_4_24, REL7_4_23, REL7_4_22, REL7_4_21, REL7_4_20, REL7_4_2, REL7_4_19, REL7_4_18, REL7_4_17, REL7_4_16, REL7_4_15, REL7_4_14, REL7_4_13, REL7_4_12, REL7_4_11, REL7_4_10, REL7_4_1, REL7_4
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +2 -2 lines
Mop-up for previous change to determine default shared_buffers and
max_connections at initdb time.  Get rid of DEF_NBUFFERS and DEF_MAXBACKENDS
macros, which aren't doing anything useful anymore, and put more likely
defaults into postgresql.conf.sample.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Aug 4 02:40:06 2003 UTC (22 years, 1 month ago) by momjian
Branches: MAIN
CVS tags: REL7_4_BETA1
Branch point for: WIN32_DEV
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +2 -2 lines
Update copyrights to 2003.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Tue Jul 29 00:03:18 2003 UTC (22 years, 1 month ago) by tgl
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +2 -2 lines
Apply (a somewhat revised version of) Greg Mullane's patch to eliminate
heuristic determination of day vs month in date/time input.  Add the
ability to specify that input is interpreted as yy-mm-dd order (which
formerly worked, but only for yy greater than 31).  DateStyle's input
component now has the preferred spellings DMY, MDY, or YMD; the older
keywords European and US are now aliases for the first two of these.
Per recent discussions on pgsql-general.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Jun 27 14:45:30 2003 UTC (22 years, 2 months ago) by petere
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +1 -3 lines
First batch of object rename commands.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Wed May 28 18:19:09 2003 UTC (22 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +3 -1 lines
Fix things so that an error occuring during standalone-backend processing
in initdb will result in exit(1), allowing the initdb script to realize
that there's something wrong.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed May 28 17:25:02 2003 UTC (22 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -1 lines
In bootstrap and standalone-backend modes, do not sort LOG elevel out
of order; the 'server log' output is actually client output in these
scenarios and we ought to treat elevels the same way as in the client
case.  This allows initdb to not send backend stderr to /dev/null anymore,
which makes it much more likely that people will notice problems during
initdb.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Feb 22 05:57:45 2003 UTC (22 years, 6 months ago) by tgl
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +1 -3 lines
Simplify timezone-handling code per proposal to pghackers: get rid of
setting timezone-related variables during transaction start.  They were
not used anyway in platforms that HAVE_TM_ZONE or HAVE_INT_TIMEZONE,
which it appears is *all* the platforms we are currently supporting.
For platforms that have neither, we now only support UTC or numeric-
offset-from-UTC timezones.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Oct 3 17:07:53 2002 UTC (22 years, 11 months ago) by momjian
Branches: MAIN
CVS tags: REL7_3_STABLE, REL7_3_9, REL7_3_8, REL7_3_7, REL7_3_6, REL7_3_5, REL7_3_4, REL7_3_21, REL7_3_20, REL7_3_2, REL7_3_19, REL7_3_18, REL7_3_17, REL7_3_16, REL7_3_15, REL7_3_14, REL7_3_13, REL7_3_12, REL7_3_11, REL7_3_10
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +1 -5 lines
This patch removes two unused global variables from globals.c

Neil Conway

Revision 1.67: download - view: text, markup, annotated - select for diffs
Wed Sep 4 20:31:31 2002 UTC (23 years ago) by momjian
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -1 lines
pgindent run.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Mon Aug 12 00:36:11 2002 UTC (23 years, 1 month ago) by tgl
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +2 -2 lines
Change memory-space accounting mechanism in tuplesort.c and tuplestore.c
to make a reasonable attempt at accounting for palloc overhead, not just
the requested size of each memory chunk.  Since in many scenarios this
will make for a significant reduction in the amount of space acquired,
partially compensate by doubling the default value of SORT_MEM to 1Mb.
Per discussion in pgsql-general around 9-Jun-2002..

Revision 1.65: download - view: text, markup, annotated - select for diffs
Thu Jun 20 20:29:40 2002 UTC (23 years, 2 months ago) by momjian
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -2 lines
Update copyright to 2002.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Apr 27 21:24:34 2002 UTC (23 years, 4 months ago) by tgl
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +1 -36 lines
Support toasting of shared system relations, and provide toast tables for
pg_database, pg_shadow, pg_group, all of which now have potentially-long
fields.  Along the way, get rid of SharedSystemRelationNames list: shared
rels are now identified in their include/pg_catalog/*.h files by a
BKI_SHARED_RELATION macro, while indexes and toast rels inherit sharedness
automatically from their parent table.  Fix some bugs with failure to detoast
pg_group.grolist during ALTER GROUP.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sat Mar 2 21:39:33 2002 UTC (23 years, 6 months ago) by momjian
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +1 -3 lines
Commit to match discussed elog() changes.  Only update is that LOG is
now just below FATAL in server_min_messages.  Added more text to
highlight ordering difference between it and client_min_messages.

---------------------------------------------------------------------------

REALLYFATAL => PANIC
STOP => PANIC
New INFO level the prints to client by default
New LOG level the prints to server log by default
Cause VACUUM information to print only to the client
NOTICE => INFO where purely information messages are sent
DEBUG => LOG for purely server status messages
DEBUG removed, kept as backward compatible
DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1 added
DebugLvl removed in favor of new DEBUG[1-5] symbols
New server_min_messages GUC parameter with values:
        DEBUG[5-1], INFO, NOTICE, ERROR, LOG, FATAL, PANIC
New client_min_messages GUC parameter with values:
        DEBUG[5-1], LOG, INFO, NOTICE, ERROR, FATAL, PANIC
Server startup now logged with LOG instead of DEBUG
Remove debug_level GUC parameter
elog() numbers now start at 10
Add test to print error message if older elog() values are passed to elog()
Bootstrap mode now has a -d that requires an argument, like postmaster

Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu Oct 25 05:49:51 2001 UTC (23 years, 10 months ago) by momjian
Branches: MAIN
CVS tags: REL7_2_STABLE, REL7_2_RC2, REL7_2_RC1, REL7_2_BETA5, REL7_2_BETA4, REL7_2_BETA3, REL7_2_BETA2, REL7_2_BETA1, REL7_2_8, REL7_2_7, REL7_2_6, REL7_2_5, REL7_2_4, REL7_2_3, REL7_2
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2 lines
pgindent run on all C files.  Java run to follow.  initdb/regression
tests pass.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sun Oct 21 03:25:35 2001 UTC (23 years, 10 months ago) by tgl
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +4 -2 lines
Fix getopt-vs-init_ps_display problem by copying original argv[] info,
per suggestion from Peter.  Simplify several APIs by transmitting the
original argv location directly from main.c to ps_status.c, instead of
passing it down through several levels of subroutines.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Fri Sep 21 03:32:35 2001 UTC (23 years, 11 months ago) by tgl
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +2 -1 lines
Give VACUUM its own GUC parameter for memory usage, rather than
piggybacking on SortMem.  Add documentation for some recently-added
GUC parameters that had so far escaped it.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sat Aug 25 18:52:42 2001 UTC (24 years ago) by tgl
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +1 -2 lines
Replace implementation of pg_log as a relation accessed through the
buffer manager with 'pg_clog', a specialized access method modeled
on pg_xlog.  This simplifies startup (don't need to play games to
open pg_log; among other things, OverrideTransactionSystem goes away),
should improve performance a little, and opens the door to recycling
commit log space by removing no-longer-needed segments of the commit
log.  Actual recycling is not there yet, but I felt I should commit
this part separately since it'd still be useful if we chose not to
do transaction ID wraparound.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Tue Jun 12 05:55:50 2001 UTC (24 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +11 -20 lines
Clean up various to-do items associated with system indexes:
pg_database now has unique indexes on oid and on datname.
pg_shadow now has unique indexes on usename and on usesysid.
pg_am now has unique index on oid.
pg_opclass now has unique index on oid.
pg_amproc now has unique index on amid+amopclaid+amprocnum.
Remove pg_rewrite's unnecessary index on oid, delete unused RULEOID syscache.
Remove index on pg_listener and associated syscache for performance reasons
(caching rows that are certain to change before you need 'em again is
rather pointless).
Change pg_attrdef's nonunique index on adrelid into a unique index on
adrelid+adnum.

Fix various incorrect settings of pg_class.relisshared, make that the
primary reference point for whether a relation is shared or not.
IsSharedSystemRelationName() is now only consulted to initialize relisshared
during initial creation of tables and indexes.  In theory we might now
support shared user relations, though it's not clear how one would get
entries for them into pg_class &etc of multiple databases.

Fix recently reported bug that pg_attribute rows created for an index all have
the same OID.  (Proof that non-unique OID doesn't matter unless it's
actually used to do lookups ;-))

There's no need to treat pg_trigger, pg_attrdef, pg_relcheck as bootstrap
relations.  Convert them into plain system catalogs without hardwired
entries in pg_class and friends.

Unify global.bki and template1.bki into a single init script postgres.bki,
since the alleged distinction between them was misleading and pointless.
Not to mention that it didn't work for setting up indexes on shared
system relations.

Rationalize locking of pg_shadow, pg_group, pg_attrdef (no need to use
AccessExclusiveLock where ExclusiveLock or even RowExclusiveLock will do).
Also, hold locks until transaction commit where necessary.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon May 14 20:30:21 2001 UTC (24 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +1 -2 lines
Remove unused tables pg_variable, pg_inheritproc, pg_ipl tables.  Initdb
forced.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat May 12 01:48:49 2001 UTC (24 years, 4 months ago) by petere
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +1 -2 lines
Make bootstrap debug messages more readable.  Clean up some clutter.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Mar 22 03:59:59 2001 UTC (24 years, 5 months ago) by momjian
Branches: MAIN
CVS tags: REL7_1_STABLE, REL7_1_2, REL7_1
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +2 -2 lines
pgindent run.  Make it all clean.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Tue Mar 13 01:17:06 2001 UTC (24 years, 6 months ago) by tgl
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -49 lines
XLOG (and related) changes:

* Store two past checkpoint locations, not just one, in pg_control.
  On startup, we fall back to the older checkpoint if the newer one
  is unreadable.  Also, a physical copy of the newest checkpoint record
  is kept in pg_control for possible use in disaster recovery (ie,
  complete loss of pg_xlog).  Also add a version number for pg_control
  itself.  Remove archdir from pg_control; it ought to be a GUC
  parameter, not a special case (not that it's implemented yet anyway).

* Suppress successive checkpoint records when nothing has been entered
  in the WAL log since the last one.  This is not so much to avoid I/O
  as to make it actually useful to keep track of the last two
  checkpoints.  If the things are right next to each other then there's
  not a lot of redundancy gained...

* Change CRC scheme to a true 64-bit CRC, not a pair of 32-bit CRCs
  on alternate bytes.  Polynomial borrowed from ECMA DLT1 standard.

* Fix XLOG record length handling so that it will work at BLCKSZ = 32k.

* Change XID allocation to work more like OID allocation.  (This is of
  dubious necessity, but I think it's a good idea anyway.)

* Fix a number of minor bugs, such as off-by-one logic for XLOG file
  wraparound at the 4 gig mark.

* Add documentation and clean up some coding infelicities; move file
  format declarations out to include files where planned contrib
  utilities can get at them.

* Checkpoint will now occur every CHECKPOINT_SEGMENTS log segments or
  every CHECKPOINT_TIMEOUT seconds, whichever comes first.  It is also
  possible to force a checkpoint by sending SIGUSR1 to the postmaster
  (undocumented feature...)

* Defend against kill -9 postmaster by storing shmem block's key and ID
  in postmaster.pid lockfile, and checking at startup to ensure that no
  processes are still connected to old shmem block (if it still exists).

* Switch backends to accept SIGQUIT rather than SIGUSR1 for emergency
  stop, for symmetry with postmaster and xlog utilities.  Clean up signal
  handling in bootstrap.c so that xlog utilities launched by postmaster
  will react to signals better.

* Standalone bootstrap now grabs lockfile in target directory, as added
  insurance against running it in parallel with live postmaster.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Jan 24 19:43:16 2001 UTC (24 years, 7 months ago) by momjian
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -2 lines
Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jan 23 20:33:29 2001 UTC (24 years, 7 months ago) by petere
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +1 -9 lines
Remove useless leftover global variable Ps_status_buffer.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jan 19 22:08:47 2001 UTC (24 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -1 lines
Make critical sections (elog->crash) and interrupt holdoff sections
into distinct concepts, per recent discussion on pghackers.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Jan 14 05:08:16 2001 UTC (24 years, 7 months ago) by tgl
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +7 -4 lines
Restructure backend SIGINT/SIGTERM handling so that 'die' interrupts
are treated more like 'cancel' interrupts: the signal handler sets a
flag that is examined at well-defined spots, rather than trying to cope
with an interrupt that might happen anywhere.  See pghackers discussion
of 1/12/01.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Jan 7 04:17:29 2001 UTC (24 years, 8 months ago) by tgl
Branches: MAIN
CVS tags: REL7_1_BETA3
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -2 lines
Fix recent breakage of query-cancel logic, see my pghackers message
of 6 Jan 2001 21:55.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Dec 28 13:00:24 2000 UTC (24 years, 8 months ago) by vadim
Branches: MAIN
CVS tags: REL7_1_BETA2
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +47 -1 lines
New WAL version - CRC and data blocks backup.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Nov 12 20:51:52 2000 UTC (24 years, 9 months ago) by tgl
Branches: MAIN
CVS tags: REL7_1_BETA
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +1 -2 lines
Keep track of the last active slot in the shared ProcState array, so
that search loops only have to scan that far and not through all maxBackends
entries.  This eliminates a performance penalty for setting maxBackends
much higher than the average number of active backends.  Also, eliminate
no-longer-used 'backend tag' concept.  Remove setting of environment
variables at backend start (except for CYR_RECODE), since none of them
are being examined by the backend any longer.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed Sep 6 14:15:22 2000 UTC (25 years ago) by petere
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +1 -2 lines
Code cleanup of user name and user id handling in the backend. The current
user is now defined in terms of the user id, the user name is only computed
upon request (for display purposes). This is kind of the opposite of the
previous state, which would maintain the user name and compute the user id
for permission checks.

Besides perhaps saving a few cycles (integer vs string), this now creates a
single point of attack for changing the user id during a connection, for
purposes of "setuid" functions, etc.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed May 31 00:28:32 2000 UTC (25 years, 3 months ago) by petere
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -1 lines
The heralded `Grand Unified Configuration scheme' (GUC)

That means you can now set your options in either or all of $PGDATA/configuration,
some postmaster option (--enable-fsync=off), or set a SET command. The list of
options is in backend/utils/misc/guc.c, documentation will be written post haste.

pg_options is gone, so is that pq_geqo config file. Also removed were backend -K,
-Q, and -T options (no longer applicable, although -d0 does the same as -Q).

Added to configure an --enable-syslog option.

changed all callers from TPRINTF to elog(DEBUG)

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue May 30 00:49:56 2000 UTC (25 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -2 lines
Remove unused include files.  Do not touch /port or includes used by defines.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri May 5 03:09:43 2000 UTC (25 years, 4 months ago) by tgl
Branches: MAIN
CVS tags: REL7_0_PATCHES, REL7_0
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -1 lines
Make the indexes on pg_group be shared system relations.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Apr 12 17:16:02 2000 UTC (25 years, 5 months ago) by momjian
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
Ye-old pgindent run.  Same 4-space tabs.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Feb 16 17:25:49 2000 UTC (25 years, 6 months ago) by thomas
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
Make ISO date style (e.g. "2000-02-16 09:33") the default.
Implement "date/time grand unification".
 Transform datetime and timespan into timestamp and interval.
 Deprecate datetime and timespan, though translate to new types in gram.y.
 Transform all datetime and timespan catalog entries into new types.
 Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
 Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
  routines for all date/time types.
 date.{h,c} now deals with date, time types.
 timestamp.{h,c} now deals with timestamp, interval types.
 nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Jan 26 05:57:26 2000 UTC (25 years, 7 months ago) by momjian
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -2 lines
Add:

  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc

to all files copyright Regents of Berkeley.  Man, that's a lot of files.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Dec 10 10:29:01 1999 UTC (25 years, 9 months ago) by ishii
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -1 lines
Fix memory overrun while setting ps status

Revision 1.38: download - view: text, markup, annotated - select for diffs
Fri Oct 8 04:28:48 1999 UTC (25 years, 11 months ago) by momjian
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2 lines
Cleanup -is flag to -l for SSL.  Another PERL variable name fix.  Clean
up debugging options for postmaster and postgres programs.  postmaster
-d is no longer optional.  Documentation updates.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Sep 27 20:27:09 1999 UTC (25 years, 11 months ago) by momjian
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -2 lines
Massimo's SET FSYNC and SHOW PG_OPTIONS changes, without SET QUERY_LIMIT.

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 2 05:25:10 1999 UTC (26 years, 1 month ago) by scrappy
Branches: REL6_5_PATCHES
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +5 -11 lines

Another 'mega-commit' of back-patches ...

- integrating the #include file cleanup that Bruce recently did
- got the CPU change to adt/Makefile
- changing DOUBLEALIGN -> MAXALIGN

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Jul 17 20:18:08 1999 UTC (26 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +1 -3 lines
 Move some system includes into c.h, and remove duplicates.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Fri Jul 16 05:23:25 1999 UTC (26 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -4 lines
Final cleanup

Revision 1.34: download - view: text, markup, annotated - select for diffs
Fri Jul 16 03:14:25 1999 UTC (26 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
Update #include cleanups

Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Jul 15 23:03:30 1999 UTC (26 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Change #include's to use <> and "" as appropriate.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jul 15 22:40:08 1999 UTC (26 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +1 -4 lines
Remove unused #includes in *.c files.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jul 15 15:20:34 1999 UTC (26 years, 1 month ago) by momjian
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -2 lines
Clean up #include in /include directory.  Add scripts for checking includes.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue May 25 16:12:34 1999 UTC (26 years, 3 months ago) by momjian
Branches: MAIN
CVS tags: REL6_5
Branch point for: REL6_5_PATCHES
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -1 lines
pgindent run over code.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat May 22 17:47:46 1999 UTC (26 years, 3 months ago) by tgl
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +2 -3 lines
Modify backend switch parsing to prevent 'insecure' switches
from being accepted when they are passed from client connection request.
Get rid of a couple that no longer do anything (like -P).

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Mar 17 22:53:19 1999 UTC (26 years, 5 months ago) by momjian
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -2 lines
Add new postgres -O option to allow system table structure changes.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Feb 13 23:20:00 1999 UTC (26 years, 6 months ago) by momjian
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2 lines
Change my-function-name-- to my_function_name, and optimizer renames.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Oct 16 06:05:16 1998 UTC (26 years, 10 months ago) by momjian
Branches: MAIN
CVS tags: REL6_4
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -2 lines
The problem is that read_pg_options needs DataDir to read its file but
DataDir is set after read_pg_options if postgres is called
interactively.  If postgres is forked by postgres DataDir is read from
the PGDATA enviromnent variable set by the postmaster and this explains
while the bug disappears.  I have written this patch but I don't like
it. Any better idea?

Massimo Dal Zotto

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Aug 25 21:24:10 1998 UTC (27 years ago) by scrappy
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines

From: Massimo Dal Zotto <dz@cs.unitn.it>

> ps-status.patch
>
>       macros for ps status, used by postgres.c and utility.c.
>       Unfortunately ps status is system dependent and the current
>       code doesn't work on linux. The use of macros confines system
>       dependency to into one file (ps-status.h). Users of other
>       operating systems should check this code and submit new macros.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jul 9 03:28:51 1998 UTC (27 years, 2 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -1 lines

From: Tom Lane <tgl@sss.pgh.pa.us>

Making PQrequestCancel safe to call in a signal handler turned out to be
much easier than I feared.  So here are the diffs.

Some notes:
  * I modified the postmaster's packet "iodone" callback interface to allow
    the callback routine to return a continue-or-drop-connection return
    code; this was necessary to allow the connection to be closed after
    receiving a Cancel, rather than proceeding to launch a new backend...
    Being a neatnik, I also made the iodone proc have a typechecked
    parameter list.
  * I deleted all code I could find that had to do with OOB.
  * I made some edits to ensure that all signals mentioned in the code
    are referred to symbolically not by numbers ("SIGUSR2" not "2").
    I think Bruce may have already done at least some of the same edits;
    I hope that merging these patches is not too painful.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri May 29 17:00:18 1998 UTC (27 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -2 lines
Remove fork()/exec() and only do fork().  Small cleanups.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue May 19 18:05:51 1998 UTC (27 years, 3 months ago) by momjian
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +5 -3 lines
Allow cancel from client of backend query.  Change some int variables
to bool's.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Feb 26 04:37:56 1998 UTC (27 years, 6 months ago) by momjian
Branches: MAIN
CVS tags: release-6-3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
pgindent run before 6.3 release, with Thomas' requested changes.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Feb 25 13:08:00 1998 UTC (27 years, 6 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -2 lines
From: Jan Wieck <jwieck@debis.com>

    seems  that  my last post didn't make it through. That's good
    since  the  diff  itself  didn't  covered  the  renaming   of
    pg_user.h to pg_shadow.h and it's new content.

    Here  it's  again.  The  complete regression test passwd with
    only some  float  diffs.  createuser  and  destroyuser  work.
    pg_shadow cannot be read by ordinary user.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jan 26 01:41:42 1998 UTC (27 years, 7 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2 lines
From: Phil Thompson <phil@river-bank.demon.co.uk>

I've completed the patch to fix the protocol and authentication issues I
was discussing a couple of weeks ago.  The particular changes are:

- the protocol has a version number
- network byte order is used throughout
- the pg_hba.conf file is used to specify what method is used to
  authenticate a frontend (either password, ident, trust, reject, krb4
  or krb5)
- support for multiplexed backends is removed
- appropriate changes to man pages
- the -a switch to many programs to specify an authentication service
  no longer has any effect
- the libpq.so version number has changed to 1.1

The new backend still supports the old protocol so old interfaces won't
break.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jan 25 05:14:42 1998 UTC (27 years, 7 months ago) by momjian
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -2 lines
getpid/pid cleanup

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon Nov 24 05:09:13 1997 UTC (27 years, 9 months ago) by momjian
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -2 lines
Remove tqual.h includes not needed.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Nov 15 20:57:27 1997 UTC (27 years, 9 months ago) by momjian
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +1 -6 lines
Remove pg_magic, defaults, server, hosts, and demon tables.  unused.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Nov 2 15:26:12 1997 UTC (27 years, 10 months ago) by vadim
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +1 -2 lines
Good Bye, Time Travel!

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Sep 18 14:33:46 1997 UTC (27 years, 11 months ago) by vadim
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -2 lines
No more SortTuplesInTree...

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Sep 18 05:23:58 1997 UTC (27 years, 11 months ago) by vadim
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1 lines
+ int SortTuplesInTree = 2560;
	(default value for max number of tuples in leftist tree)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Sep 8 02:31:56 1997 UTC (28 years ago) by momjian
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +31 -31 lines
Another PGINDENT run that changes variable indenting and case label indenting.  Also static variable indenting.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Sep 7 04:53:48 1997 UTC (28 years ago) by momjian
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +75 -72 lines
Massive commit to run PGINDENT on all *.c and *.h files.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Thu Aug 14 16:11:21 1997 UTC (28 years ago) by momjian
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -1 lines
Cleanup global variables, remove stable memory stuff.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Mar 28 07:18:06 1997 UTC (28 years, 5 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Small date patches (resubmitted)

Here a some small patches for the date/time code. They set the default
output format for the datetime type to the traditional Postgres
style, and fix a date debugging declaration. I submitted these
a couple of days ago, but they might have gotten lost...


NOTE: the second patch to dt.c is what I believe D'Arcy submitted as well,
      that I claimed was taken out...sorry D'Arcy, my fault :(

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Mar 25 08:09:43 1997 UTC (28 years, 5 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2 lines
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] More patches for date/time

I have accumulated several patches to add functionality to the datetime
and timespan data types as well as to fix reported porting bugs on non-BSD
machines. These patches are:

dt.c.patch              - add datetime_part(), fix bugs
dt.h.patch              - add quarter and timezone support, add prototypes
globals.c.patch         - add time and timezone variables
miscadmin.h.patch       - add time and timezone variables
nabstime.c.patch        - add datetime conversion routine
nabstime.h.patch        - add prototypes
pg_operator.h.patch     - add datetime operators, clean up formatting
pg_proc.h.patch         - add datetime functions, reassign conflicting date OIDs
pg_type.h.patch         - add datetime and timespan data types

The dt.c and pg_proc.h patches are fairly large; the latter mostly because I tried
to get some columns for existing entries to line up.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Mar 18 20:14:46 1997 UTC (28 years, 5 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -1 lines
  - Move most of the I/O in both libpq and the backend to a set
    of common routines in pqcomprim.c (pq communication primitives).
    Not all adapted to it yet, but it's a start.

  - Rewritten some of those routines, to write/read bigger chunks of
    data, precomputing stuff in buffers instead of sending out byte
    by byte.

  - As a consequence, I need to know the endianness of the machine.
    Currently I rely on getting it from machine/endian.h, but this
    may not be available everywhere? (Who the hell thought it was
    a good idea to pass integers to the backend the other way around
    than the normal network byte order? *argl*)

  - Libpq looks in the environment for magic variables, and upon
    establishing a connection to the backend, sends it queries
    of the form "SET var_name TO 'var_value'". This needs a change
    in the backend parser (Mr. Parser, are you there? :)

  - Currently it looks for two Env-Vars, namely PG_DATEFORMAT
    and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT?
    PG_TIMEZONE?

From: "Martin J. Laubach" <mjl@wwx.vip.at>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Mar 18 16:35:46 1997 UTC (28 years, 5 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -2 lines
Resync the source tree, commit some things that were missing (pqcomprim.c) and
bring in Thomas's updates for the date/time code...

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jan 26 15:31:29 1997 UTC (28 years, 7 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -1 lines
Bring in a patch from Keith Parks to move the use of European dates
from a #define to a run-time option '-e'

Man page was updated to reflect new option

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 14 08:05:36 1997 UTC (28 years, 7 months ago) by bryanh
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -3 lines
Eliminate dupliclate definition of external variables reldesc and DataDir.
Some compilers recognize this error.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Nov 14 10:24:38 1996 UTC (28 years, 9 months ago) by bryanh
Branches: MAIN
CVS tags: REL2_0B, REL2_0
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -10 lines
Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Nov 6 10:31:54 1996 UTC (28 years, 10 months ago) by scrappy
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -1 lines
Another directory that compiles with no errors, and few warnings

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Tue Jul 9 06:22:08 1996 UTC (29 years, 2 months ago) by scrappy
Branches: PG95_DIST
CVS tags: Release_2_0_0, Release_2_0, Release_1_0_3, Release_1_0_2, PG95-1_01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
Postgres95 1.01 Distribution - Virgin Sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jul 9 06:22:08 1996 UTC (29 years, 2 months ago) by scrappy
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

PostgreSQL CVSweb <webmaster@postgresql.org>