aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Do not let external specification of CFLAGS stop us from addingTom Lane2004-02-02
| | | | -fno-strict-aliasing.
* Avoid generating invalid character encoding sequences in make_greater_string.Tom Lane2004-02-02
| | | | Not sure how this mistake evaded detection for so long.
* Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter canNeil Conway2004-02-02
| | | | | apparently corrupt the Tcl runtime. Per suggestion from Michael Brusser <michael@synchronicity.com>
* Adjust rename on Win32 to only link to temp name while holding lock,Bruce Momjian2004-02-02
| | | | then release locks and loop over renaming to active file name.
* Briefly,Bruce Momjian2004-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure + Makefile changes * shared memory attaching in EXEC_BACKEND case (+ minor fix for apparent cygwin bug under cygwin/EXEC_BACKEND case only) * PATH env var separator differences * missing win32 rand functions added * placeholder replacements for sync etc under port.h To those who are really interested, and there are a few of you: the attached patch + file will allow the source base to be compiled (and, for some definition, "run") under MingW, with the following caveats (I wanted to first properly fix all but the last of these, but y'all won't quit asking for a patch :-): * child death: SIGCHLD not yet sent, so as a minimum, you'll need to put in some sort of delay after StartupDatabase, and handle setting StartupPID to 0 etc (ie. the stuff the reaper() signal function is supposed to do) * dirmod.c: comment out the elog calls * dfmgr.c: some hackage required to substitute_libpath_macro * slru/xact.c: comment out the errno checking after the readdir (fixed by next version of MingW) Again, this is only if you *really* want to see postgres compile and start, and is a nice leg-up for working on the other Win32 TODO list items. Just don't expect too much else from it at this point... Claudio Natoli
* Set locale to C before doing sort in make_ctags.Bruce Momjian2004-02-01
|
* Update char_length() example for new semantics.Tom Lane2004-02-01
|
* Make length() disregard trailing spaces in char(n) values, per discussionTom Lane2004-02-01
| | | | | some time ago and recent patch from Gavin Sherry. Update documentation to point out that trailing spaces are insignificant in char(n).
* Fix a probably-harmless read of uninitialized memory in mkdir_p(), toNeil Conway2004-01-31
| | | | silence a valgrind warning.
* Remove a superfluous semi-colon.Neil Conway2004-01-31
|
* Micro-opt: replace calls likeNeil Conway2004-01-31
| | | | | | | appendStringInfo(buf, "%s", str); with appendStringInfoString(buf, str); as the latter form is slightly faster.
* Fix text_position to not scan past end of source string in multibyteTom Lane2004-01-31
| | | | | case, per report from Korea PostgreSQL Users' Group. Also do some cosmetic cleanup in nearby code.
* Fix debug elog message to agree with name of its routine.Tom Lane2004-01-30
|
* Remove sleep() and use single PG_SLEEP call for Win32 signal handlingBruce Momjian2004-01-30
| | | | | | and consistency. Change PG_USLEEP to use SleepEx() for signal interuptability.
* Add:Bruce Momjian2004-01-30
| | | | | < > * Allow libpq to return information about prepared queries
* Fix (debatable) spelling mistake in a comment: 'concatenate' is the usualNeil Conway2004-01-29
| | | | term, not 'catenate'.
* Make USING and WITH optional to bring the syntax of \copy into exactTom Lane2004-01-28
| | | | | | | | agreement with what the backend grammar actually accepts (which is a bit looser than what its documentation claims). Per report from Bill Moran, though I did not use his patch since it removed all the undocumented flexibility that the code historically had and the backend still has.
* Review uses of IsUnderPostmaster, change some tests to look atTom Lane2004-01-28
| | | | | | | 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.
* Fix typo.Tom Lane2004-01-28
|
* Removed some debugging output.Michael Meskes2004-01-28
|
* - Issue a warning if a cursor is declared but not opened.Michael Meskes2004-01-28
| | | | | | - Fixed prototype for ECPGprepared_statement to not moan about "const char" - Fixed parsing of nested structures. - Added option to parse header files.
* Fix oversight in check_ungrouped_columns optimization that avoidsTom Lane2004-01-28
| | | | | | | unnecessary checks for complex grouping expressions: we cannot check whether the expressions are simple Vars until after we apply flatten_join_alias_vars, because in the case of FULL JOIN that routine can introduce non-Var expressions. Per example from Joel Knight.
* simplify_function() mustn't try to evaluate functions that returnTom Lane2004-01-28
| | | | | | | composite types, because TupleTableSlots aren't Datums and can't be stored in Const nodes. We can remove this restriction if we ever adopt a cleaner runtime representation for whole-tuple results, but at the moment it's broken. Per example from Thomas Hallgren.
* Improve the documentation of the 'join_collapse_limit' GUC var. Thanks toNeil Conway2004-01-27
| | | | Tom Lane for some editorial suggestions.
* Run stats test separately, not as part of a parallel group, to avoidTom Lane2004-01-27
| | | | | possible failures due to stats collector not updating fast enough under heavy load. Per report from Jeremy Yoder.
* Pgindent win32 signal code.Bruce Momjian2004-01-27
|
* Here's the latest win32 signals code, this time in the form of a patchBruce Momjian2004-01-27
| | | | | | | | | | | | | | | | | against the latest shapshot. It also includes the replacement of kill() with pqkill() and sigsetmask() with pqsigsetmask(). Passes all tests fine on my linux machine once applied. Still doesn't link completely on Win32 - there are a few things still required. But much closer than before. At Bruce's request, I'm goint to write up a README file about the method of signals delivery chosen and why the others were rejected (basically a summary of the mailinglist discussions). I'll finish that up once/if the patch is accepted. Magnus Hagander
* [all] Removed call to getppid in SendPostmasterSignal, replacing with aBruce Momjian2004-01-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Back out win32 patch so we can apply it separately.Bruce Momjian2004-01-26
|
* Attached is a patch that fixes some trivial typos and alignment. PleaseBruce Momjian2004-01-26
| | | | | | apply. Alvaro Herrera
* Add Name:Bruce Momjian2004-01-26
| | | | > * -Add checks for fclose() failure (Tom)
* Done:Bruce Momjian2004-01-26
| | | | > * -Add checks for fclose() failure (Tom)
* Ensure that close() and fclose() are checked for errors, at least inTom Lane2004-01-26
| | | | | | cases involving writes. Per recent discussion about the possibility of close-time failures on some filesystems. There is a TODO item for this, too.
* The attached patch clarifies (or, rather, makes explicit) to readers howNeil Conway2004-01-26
| | | | | | to handle memory management for char pointers returned by libpq functions. Original patch by Gavin Sherry, some tweaking and consistency improvements by Neil Conway.
* Repair incorrect order of operations in GetNewTransactionId(). We mustTom Lane2004-01-26
| | | | | | complete ExtendCLOG() before advancing nextXid, so that if that routine fails, the next incoming transaction will try it again. Per trouble report from Christopher Kings-Lynne.
* Added:Bruce Momjian2004-01-26
| | | | > * Dump large object comments in custom dump format
* Add usage examples for PREPARE and EXECUTE. Original patch from GavinNeil Conway2004-01-26
| | | | Sherry, editorializing by Neil Conway.
* Docs fix from Kris Jurka <books@ejurka.com>Teodor Sigaev2004-01-26
|
* Clarify that the 'user' column still applies for 'trust'.Bruce Momjian2004-01-26
|
* Update datestamp.Bruce Momjian2004-01-26
|
* Fix an obsolete file path mentioned in a comment.Neil Conway2004-01-25
|
* *** empty log message ***Bruce Momjian2004-01-25
|
* Add Joe to TODO:Bruce Momjian2004-01-25
| | | | > * Joe is Joe Conway <mail@joeconway.com>
* Fix typo I mistakenly added.Bruce Momjian2004-01-25
|
* More fallout from the recent psql patch: rename xmalloc and friends toNeil Conway2004-01-25
| | | | pg_malloc, to avoid linker failures on same platforms.
* Update null storage description.Bruce Momjian2004-01-25
|
* Mention that log_statement only prints query on PREPARE, not EXECUTE,Bruce Momjian2004-01-25
| | | | and PL/pgSQL only prints queries on first function call.
* Support named parameters in information_schema.parameters,Tom Lane2004-01-24
| | | | | per Dennis Bjorklund. I did not force initdb for this, but you'd need to do one to get the improved view.
* Fix problems with dropped columns in pltcl triggers, per report from Patrick ↵Tom Lane2004-01-24
| | | | Samson.
* Example of a function taking a composite type should show how to call it.Tom Lane2004-01-24
|