- 11 May, 2004 1 commit
-
-
Bruce Momjian authored
all the code that looks for other binaries. I move FindExec into port/exec.c (and renamed it to find_my_binary()). I also added find_other_binary that looks for another binary in the same directory as the calling program, and checks the version string. The only behavior change was that initdb and pg_dump would look in the hard-coded bindir directory if it can't find the requested binary in the same directory as the caller. The new code throws an error. The old behavior seemed too error prone for version mismatches.
-
- 07 May, 2004 1 commit
-
-
Bruce Momjian authored
have a more proper GUC based test. Also change error return code to ERRCODE_INVALID_PARAMETER_VALUE so it matches the old error return code.
-
- 25 Apr, 2004 1 commit
-
-
Neil Conway authored
from Alvaro Herrera. Also, removed lispsort.c, since it is no longer used.
-
- 19 Apr, 2004 1 commit
-
-
Bruce Momjian authored
* removed a few redundant defines * get_user_name safe under win32 * rationalized pipe read EOF for win32 (UPDATED PATCH USED) * changed all backend instances of sleep() to pg_usleep - except for the SLEEP_ON_ASSERT in assert.c, as it would exceed a 32-bit long [Note to patcher: If a SLEEP_ON_ASSERT of 2000 seconds is acceptable, please replace with pg_usleep(2000000000L)] I added a comment to that part of the code: /* * It would be nice to use pg_usleep() here, but only does 2000 sec * or 33 minutes, which seems too short. */ sleep(1000000); Claudio Natoli
-
- 11 Apr, 2004 1 commit
-
-
Bruce Momjian authored
calling proc_exit() directly. This should make SIGTERM more reliable.
-
- 07 Apr, 2004 1 commit
-
-
Bruce Momjian authored
> >>with allowed values of "all, mod, ddl, none" with default "none". OK, here is a patch that implements #1. Here is sample output: test=> set client_min_messages = 'log'; SET test=> set log_statement = 'mod'; SET test=> select 1; ?column? ---------- 1 (1 row) test=> update test set x=1; LOG: statement: update test set x=1; ERROR: relation "test" does not exist test=> update test set x=1; LOG: statement: update test set x=1; ERROR: relation "test" does not exist test=> copy test from '/tmp/x'; LOG: statement: copy test from '/tmp/x'; ERROR: relation "test" does not exist test=> copy test to '/tmp/x'; ERROR: relation "test" does not exist test=> prepare xx as select 1; PREPARE test=> prepare xx as update x set y=1; LOG: statement: prepare xx as update x set y=1; ERROR: relation "x" does not exist test=> explain analyze select 1;; QUERY PLAN ------------------------------------------------------------------------------------ Result (cost=0.00..0.01 rows=1 width=0) (actual time=0.006..0.007 rows=1 loops=1) Total runtime: 0.046 ms (2 rows) test=> explain analyze update test set x=1; LOG: statement: explain analyze update test set x=1; ERROR: relation "test" does not exist test=> explain update test set x=1; ERROR: relation "test" does not exist It checks PREPARE and EXECUTE ANALYZE too. The log_statement values are 'none', 'mod', 'ddl', and 'all'. For 'all', it prints before the query is parsed, and for ddl/mod, it does it right after parsing using the node tag (or command tag for CREATE/ALTER/DROP), so any non-parse errors will print after the log line.
-
- 24 Mar, 2004 1 commit
-
-
Tom Lane authored
is measured in kilobytes and checked against actual physical execution stack depth, as per my proposal of 30-Dec. This gives us a fairly bulletproof defense against crashing due to runaway recursive functions.
-
- 21 Mar, 2004 1 commit
-
-
Tom Lane authored
errors in internally-generated queries, such as those submitted by plpgsql functions. Per recent discussions with Fabien Coelho.
-
- 15 Mar, 2004 1 commit
-
-
Bruce Momjian authored
Functionality superceeded by log_line_prefix. Andrew Dunstan
-
- 09 Mar, 2004 1 commit
-
-
Bruce Momjian authored
#log_line_prefix = '' # e.g. '<%u%%%d> ' # %u=user name %d=database name # %r=remote host and port # %p=PID %t=timestamp %i=command tag # %c=session id %l=session line number # %s=session start timestamp # %x=stop here in non-session processes # %%='%' Andrew Dunstan
-
- 21 Feb, 2004 1 commit
-
-
Tom Lane authored
-
- 17 Feb, 2004 3 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
Bruce Momjian authored
bitrotted) to allow the logging of the end of a session, enabled by the config setting "log_disconnections". Andrew Dunstan
-
- 06 Feb, 2004 1 commit
-
-
Jan Wieck authored
Jan
-
- 03 Feb, 2004 1 commit
-
-
Tom Lane authored
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.
-
- 28 Jan, 2004 1 commit
-
-
Tom Lane authored
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.
-
- 26 Jan, 2004 3 commits
-
-
Bruce Momjian authored
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
-
Bruce Momjian authored
-
Bruce Momjian authored
apply. Alvaro Herrera
-
- 06 Jan, 2004 2 commits
-
-
Bruce Momjian authored
BackendFork/SSDataBase/pgstat) startup, to allow fork/exec calls to closely mimic (the soon to be provided) Win32 CreateProcess equivalent calls. Claudio Natoli
-
Neil Conway authored
backend.
-
- 25 Dec, 2003 1 commit
-
-
Bruce Momjian authored
fork/exec'd, in the same mode as the previous patch for backends. Claudio Natoli
-
- 20 Dec, 2003 1 commit
-
-
Bruce Momjian authored
Claudio Natoli
-
- 01 Dec, 2003 1 commit
-
-
Tom Lane authored
on 64-bit Solaris. Use a non-system-dependent datatype for UsedShmemSegID, namely unsigned long (which we were already assuming could hold a shmem key anyway, cf RecordSharedMemoryInLockFile).
-
- 29 Nov, 2003 2 commits
-
-
Tom Lane authored
standalone backend --- the CVS revision number of postgres.c is not real useful to anyone.
-
PostgreSQL Daemon authored
$Header: -> $PostgreSQL Changes ...
-
- 24 Nov, 2003 1 commit
-
-
Tom Lane authored
-
- 19 Oct, 2003 1 commit
-
-
Tom Lane authored
-
- 18 Oct, 2003 1 commit
-
-
Peter Eisentraut authored
machine readable, without headers, not sorted. Parameter descriptions adjusted to fit first sentence + rest convention.
-
- 16 Oct, 2003 1 commit
-
-
Tom Lane authored
protocol, per report from Igor Shevchenko. NOTIFY thought it could do its thing if transaction blockState is TBLOCK_DEFAULT, but in reality it had better check the low-level transaction state is TRANS_DEFAULT as well. Formerly it was not possible to wait for the client in a state where the first is true and the second is not ... but now we can have such a state. Minor cleanup in StartTransaction() as well.
-
- 09 Oct, 2003 1 commit
-
-
Bruce Momjian authored
Have log_duration print when log_min_duration_statement prints.
-
- 08 Oct, 2003 1 commit
-
-
Bruce Momjian authored
Change log line to be "duration: ms query:" Indent multi-line queries with a tab in the server logs.
-
- 04 Oct, 2003 1 commit
-
-
Bruce Momjian authored
pointed out by Peter.
-
- 02 Oct, 2003 1 commit
-
-
Peter Eisentraut authored
developed on -hackers.
-
- 29 Sep, 2003 2 commits
-
-
Bruce Momjian authored
this query?" logic in postgres.c Also, make it print "duration:" like log_duration. Neil Conway
-
Peter Eisentraut authored
-
- 27 Sep, 2003 1 commit
-
-
Peter Eisentraut authored
every string, especially if some of the output should be fixed-format machine-readable. This needs to be more carefully sorted out. Also, make the help message generated by --help-config -h be more similar in style to the others.
-
- 25 Sep, 2003 1 commit
-
-
Peter Eisentraut authored
terms, add some clarifications, fix some untranslatable attempts at dynamic message building.
-
- 24 Sep, 2003 1 commit
-
-
Tom Lane authored
now able to cope with assigning new relfilenode values to nailed-in-cache indexes, so they can be reindexed using the fully crash-safe method. This leaves only shared system indexes as special cases. Remove the 'index deactivation' code, since it provides no useful protection in the shared- index case. Require reindexing of shared indexes to be done in standalone mode, but remove other restrictions on REINDEX. -P (IgnoreSystemIndexes) now prevents using indexes for lookups, but does not disable index updates. It is therefore safe to allow from PGOPTIONS. Upshot: reindexing system catalogs can be done without a standalone backend for all cases except shared catalogs.
-