summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
AgeCommit message (Collapse)Author
2004-02-06Cost based vacuum delay feature.Jan Wieck
Jan
2004-02-03Rename SortMem and VacuumMem to work_mem and maintenance_work_mem.Tom Lane
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.
2004-01-28Review uses of IsUnderPostmaster, change some tests to look atTom Lane
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.
2004-01-26[all] Removed call to getppid in SendPostmasterSignal, replacing with aBruce Momjian
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
2004-01-26Back out win32 patch so we can apply it separately.Bruce Momjian
2004-01-26Attached is a patch that fixes some trivial typos and alignment. PleaseBruce Momjian
apply. Alvaro Herrera
2004-01-06Final rearrangement of main postgresql child process (ie.Bruce Momjian
BackendFork/SSDataBase/pgstat) startup, to allow fork/exec calls to closely mimic (the soon to be provided) Win32 CreateProcess equivalent calls. Claudio Natoli
2004-01-06Remove unused 'noversion' command-line option processing from theNeil Conway
backend.
2003-12-25Continued rearrangement to permit pgstat + BootstrapMain processes to beBruce Momjian
fork/exec'd, in the same mode as the previous patch for backends. Claudio Natoli
2003-12-20This patch is the next step towards (re)allowing fork/exec.Bruce Momjian
Claudio Natoli
2003-12-01Avoid assuming that type key_t is 32 bits, since it reportedly isn'tTom Lane
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).
2003-11-29Put out a more useful version indication in the welcome banner for aTom Lane
standalone backend --- the CVS revision number of postgres.c is not real useful to anyone.
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-24Repair missed renamings of show_statement_stats and show_executor_stats.Tom Lane
2003-10-19Save_r, Save_t should be static not global variables.Tom Lane
2003-10-18Cleanup on --help-config: Now called --describe-config, no further options,Peter Eisentraut
machine readable, without headers, not sorted. Parameter descriptions adjusted to fit first sentence + rest convention.
2003-10-16Fix bad interaction between NOTIFY processing and V3 extended queryTom Lane
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.
2003-10-09Change "query:" to "statement:".Bruce Momjian
Have log_duration print when log_min_duration_statement prints.
2003-10-08Have log_min_duration_statement = 0 always print duration/statement.Bruce Momjian
Change log line to be "duration: ms query:" Indent multi-line queries with a tab in the server logs.
2003-10-04Fix log_duration and log_min_duration_statement to print properly, asBruce Momjian
pointed out by Peter.
2003-10-02Change some notices to warnings and vice versa according to criteriaPeter Eisentraut
developed on -hackers.
2003-09-29This patch fixes an obvious bug in the "should I print the duration ofBruce Momjian
this query?" logic in postgres.c Also, make it print "duration:" like log_duration. Neil Conway
2003-09-29More message editing, some suggested by Alvaro HerreraPeter Eisentraut
2003-09-27You can't NLS-enable a program component by just putting gettext() aroundPeter Eisentraut
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.
2003-09-25Message editing: remove gratuitous variations in message wording, standardizePeter Eisentraut
terms, add some clarifications, fix some untranslatable attempts at dynamic message building.
2003-09-24Repair some REINDEX problems per recent discussions. The relcache isTom Lane
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.
2003-09-14Reconsider placement of MemoryContextCheck() call --- do after commit,Tom Lane
not before, to avoid duplication of effort.
2003-09-02Cause standalone backend (including bootstrap case) to read the GUCTom Lane
config file if it exists. This was already discussed as being a good idea, and now seems the cleanest way to deal with initdb-time failures on machines with small SHMMAX. (The submitted patches instead modified initdb.sh to pass the correct sizing parameters, but that would still leave standalone backends prone to failure later. An admin who needs to use a standalone backend has enough trouble already, he shouldn't have to manually configure its shmem settings...)
2003-08-26Mop-up for previous change to determine default shared_buffers andTom Lane
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.
2003-08-13Move MemoryContextCheck() call from bottom of PostgresMain loop toTom Lane
just before CommitTransactionCommand(). This is a more sensible place to put it since commit discards a lot of contexts, and we'd not find out about stomps affecting only transaction-local contexts.
2003-08-12Marginal hacks to move some processing out of the per-client-messageTom Lane
processing loop; avoids extra overhead when using parse/bind/execute messages instead of single Query message.
2003-08-12Change some frequently-reached elog(DEBUG...) calls to ereport(DEBUG...)Tom Lane
for speed reasons. (ereport falls out much more quickly when no output is needed than elog does.)
2003-08-06Rename fields of DestReceiver to avoid collisions with (ill-considered)Tom Lane
macros in some platforms' sys/socket.h.
2003-08-04Remove --enable-recode feature, since it's been broken by IPv6 changes,Tom Lane
and seems to have too few users to justify maintaining.
2003-08-04Update copyrights to 2003.Bruce Momjian
2003-08-04pgindent run.Bruce Momjian
2003-07-29Apply (a somewhat revised version of) Greg Mullane's patch to eliminateTom Lane
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.
2003-07-27elog mop-up: bring some straggling fprintf(stderr)'s into the elog world.Tom Lane
2003-07-22Error message editing in backend/libpq, backend/postmaster, backend/tcop.Tom Lane
Along the way, fix some logic problems in pgstat_initstats, notably the bogus assumption that malloc returns zeroed memory.
2003-07-09Add new USERLIMIT GUC source level so certain options can be disabledBruce Momjian
or increased only by super-users. This fixes problems caused by making certain variables SUSET for security reasons.
2003-07-04Add --help-config facility to dump information about GUC parametersTom Lane
without needing a running backend. Reorder postgresql.conf.sample to match new layout of runtime.sgml. This commit re-adds work lost in Wednesday's crash.
2003-06-20Fix for extended-query protocol: in event of error, backend was issuingTom Lane
a ReadyForQuery (Z message) immediately and then another one after the Sync message arrives. Suppress the first one to make it work per spec.
2003-06-11Add log_min_duration_statement.Bruce Momjian
Christopher Kings-Lynne
2003-05-27Make debug_ GUC varables output DEBUG1 rather than LOG, and mention inBruce Momjian
docs that CLIENT/LOG_MIN_MESSAGES now controls debug_* output location. Doc changes included.
2003-05-14Fix oversight: ignore-till-SYNC state should not ignore EOF ...Tom Lane
2003-05-14Backend support for autocommit removed, per recent discussions. TheTom Lane
only remnant of this failed experiment is that the server will take SET AUTOCOMMIT TO ON. Still TODO: provide some client-side autocommit logic in libpq.
2003-05-12Avoid unnecessary copying of parameter values in BIND. This allowsTom Lane
efficient insertion of large bytea values through the BIND interface.
2003-05-09Implement new-protocol binary I/O support in DataRow, Bind, and FunctionCallTom Lane
messages. Binary I/O is now up and working, but only for a small set of datatypes (integers, text, bytea).
2003-05-09Pass canAcceptConnections to exec'ed backend, for Jan.Bruce Momjian
2003-05-08Update 3.0 protocol support to match recent agreements about how toTom Lane
handle multiple 'formats' for data I/O. Restructure CommandDest and DestReceiver stuff one more time (it's finally starting to look a bit clean though). Code now matches latest 3.0 protocol document as far as message formats go --- but there is no support for binary I/O yet.