summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-11-27Add to CPPFLAGS/CFLAGS in template files, don't over-ride them.Bruce Momjian
2004-11-26RelOptInfo.pages should really be declared as BlockNumber, not long.Tom Lane
2004-11-24Install Tcl regex fixes to sync our regex engine with Tcl 8.4.8 (up fromTom Lane
8.4.1). This corrects some curious regex bugs, though not the greediness issue I was hoping to find a solution for :-(
2004-11-24Our interface code for Spencer's regexp package was checking for regexpTom Lane
error conditions during regexp compile, but not during regexp execution; any sort of "can't happen" errors would be treated as no-match instead of being reported as they should be. Noticed while trying to duplicate a reported Tcl bug.
2004-11-24A client_encoding specification coming from the connection request hasTom Lane
to be processed by GUC before InitPostgres, because any required lookup of the encoding conversion function has to be done during InitializeClientEncoding. So, I broke this last week by moving GUC processing to after InitPostgres :-(. What we can do as a compromise is process non-SUSET variables during command line scanning (the same as before), and postpone the processing of only SUSET variables. None of the SUSET variables need to be set before InitPostgres.
2004-11-24Avoid getting bit by roundoff error while checking $Safe::VERSION.Tom Lane
Per report from Mark Kirkwood.
2004-11-24Trivial fix for a bug introduced in r1.94 of help.c: we want to onlyNeil Conway
include "\s" in \? output when readline is enabled, but that commit supressed "\s" whether readline was enabled or not.
2004-11-24Assert that BufferIsPinned() in IncrBufferRefCount(), rather than usingNeil Conway
a home-brewed combination of assertions that boiled down to the same thing.
2004-11-23New translationsPeter Eisentraut
2004-11-23Translation updatesPeter Eisentraut
2004-11-23Further plperl cleanup: be more paranoid about checking the type ofTom Lane
data returned from Perl. Consolidate multiple bits of code to convert a Perl hash to a tuple, and drive the conversion off the keys present in the hash rather than the tuple column names, so we detect error if the hash contains keys it shouldn't. (This means keys not in the hash will silently default to NULL, which seems ok to me.) Fix a bunch of reference-count leaks too.
2004-11-22The beginnings of a regression test for plperl. Right now it onlyTom Lane
covers return value processing, but that was the most broken stuff...
2004-11-22Try to instill some sanity in plperl's function result processing.Tom Lane
Get rid of static variables for SETOF result, don't crash when called from non-FROM context, eliminate dead code, etc.
2004-11-21Fix rounding problem in dynahash.c's decision about when the targetTom Lane
fill factor has been exceeded. We usually run with ffactor == 1, but the way the test was coded, it wouldn't split a bucket until the actual fill factor reached 2.0, because of use of integer division. Change from > to >= so that it will split more aggressively when the table starts to get full.
2004-11-21Reduce the default size of the PortalHashTable in order to save aTom Lane
few cycles during transaction exit. A typical session probably wouldn't have as many as half a dozen portals open at once, so the original value of 64 seems far larger than needed.
2004-11-21While fixing plperl and pltcl, I realized plpgsql wasn't doingTom Lane
subtransactions quite right either: the ReleaseCurrentSubTransaction call should occur inside the PG_TRY, so that the proper path is taken if an error occurs during subtransaction commit. This assumes that AbortSubTransaction can cope with the state left behind if CommitSubTransaction fails partway through, but we were already requiring that.
2004-11-21Suppress remaining compile warnings, and add a comment about whyTom Lane
it's not really broken. Andrew Dunstan
2004-11-21Fix plperl and pltcl error handling per my previous proposal. SPITom Lane
operations are now run as subtransactions, so that errors in them can be reported as ordinary Perl or Tcl errors and caught by the normal error handling convention of those languages. Also do some minor code cleanup in pltcl.c: extract a large chunk of duplicated code in pltcl_SPI_execute and pltcl_SPI_execute_plan into a shared subroutine.
2004-11-20Patch of 2004-03-30 corrected date_part(timestamp) for extractingTom Lane
the year from a BC date, but failed to make the same fix in date_part(timestamptz).
2004-11-20Fix up makefile dependencies for pg_config_paths.h.Tom Lane
2004-11-20Avoid scanning the relcache during AtEOSubXact_RelationCache when thereTom Lane
is nothing to do, which is most of the time. This is another simple improvement to cut subtransaction entry/exit overhead.
2004-11-20Reduce the default size of the local lock hash table. There's usuallyTom Lane
no need for it to be nearly as big as the global hash table, and since it's not in shared memory it can grow if it does need to be bigger. By reducing the size, we speed up hash_seq_search(), which saves a significant fraction of subtransaction entry/exit overhead.
2004-11-20Fix plperl's elog() function to convert elog(ERROR) into Perl croak(),Tom Lane
rather than longjmp'ing clear out of Perl and thereby leaving Perl in a broken state. Also some minor prettification of error messages. Still need to do something with spi_exec_query() error handling.
2004-11-20Fix one more place where we were expecting lcons() to be nondestructiveTom Lane
to the original List; per report from Sebastian BÎck. I think this is the last such bug --- I examined every lcons() call in the backend and the rest seem OK --- but it's nervous-making that we're still finding 'em so many months after the List rewrite went in.
2004-11-20On some HPUX versions/hardware, it seems we need to include libgcc.a inTom Lane
the regression test shared libraries.
2004-11-20Fix unportable isdigit() call --- must cast arg to unsigned char.Tom Lane
2004-11-20Move pgstat_report_tabstat() call so that stats are not reported to theTom Lane
collector until the transaction commits. Per recent discussion, this should avoid confusing autovacuum when an updating transaction runs for a long time.
2004-11-20Make sure we produce a useful error message for the case where theTom Lane
postgresql.crt file simply isn't there, too.
2004-11-20Improve error reporting for SSL connection failures. Remove redundantTom Lane
free operations in client_cert_cb --- openssl will also attempt to free these structures, resulting in core dumps.
2004-11-19Clean up rpath handling for HPUX --- we can't use the cc-style rpathTom Lane
switch syntax when calling ld directly.
2004-11-19Set rpath for plperl and plpython to ensure we can find the .so filesTom Lane
for the languages even when not installed in a standard directory. pltcl may need this treatment as well, but we don't have the right path conveniently available, so I'll leave it alone as long as there aren't actual reports of trouble.
2004-11-19Modify the platform-specific makefiles so that macro 'rpath' is definedTom Lane
in terms of macro 'rpathdir', as I proposed a few weeks ago. In itself this commit shouldn't change the behavior at all, but it opens the door to using special rpaths for the PL shared libraries, as seems to be needed for plperl in particular.
2004-11-18Fix memory clobber problem reported by John Hansen: plperl_safe_init()Tom Lane
may expand the Perl stack, therefore we must SPAGAIN to reload the local stack pointer after calling it. Also a couple other marginal readability improvements.
2004-11-18Whoops, missed converting the other sleep() call to pg_usleep().Tom Lane
2004-11-18Translation updatePeter Eisentraut
2004-11-18Force pg_database updates out to disk immediately after ALTER DATABASE;Tom Lane
this is to avoid scenarios where incoming backends find no live copies of a database's row because the only live copy is in an as-yet-unwritten shared buffer, which they can't see. Also, use FlushRelationBuffers() for forcing out pg_database, instead of the much more expensive BufferSync(). There's no need to write out pages belonging to other relations.
2004-11-17Include <getopt.h> if available, to avoid warnings on Windows.Tom Lane
2004-11-17Remove ill-considered suppression of gcc warnings in plperl, and fixTom Lane
some of the bugs exposed thereby. The remaining 'might be used uninitialized' warnings look like live bugs, but I am not familiar enough with Perl/C hacking to tell how to fix them.
2004-11-17Fix off-by-one memory allocation, as reported by Rod Taylor. AlsoTom Lane
avoid repalloc'ing twice when once is sufficient.
2004-11-17Set DEFAULT_EDITOR to notepad.exe on Windows, as per recent discussion.Tom Lane
2004-11-17Force LANG=en on Windows, since system may fail to default to English.Tom Lane
2004-11-17Add installcheck-parallel regression test target. Magnus HaganderTom Lane
2004-11-17Use pg_usleep() not sleep(), per Andrew Dunstan.Tom Lane
2004-11-17Miscellaneous Cygwin build fixes from Reini Urban.Tom Lane
2004-11-17Add variant regression file to support BSDen that underflow to plus zero insteadTom Lane
of minus zero. Per Andrew Dunstan.
2004-11-17Install include/port header files, and fix PGXS build to use them.Tom Lane
Fabien COELHO
2004-11-17Adjust SHLIB_LINK for cygwin case.Tom Lane
Reini Urban
2004-11-17Be sure length limit passed to snprintf matches what malloc was given.Tom Lane
Just paranoia ...
2004-11-17Minor adjustment of message style.Tom Lane
2004-11-17Win32 build cleanups, from Andrew Dunstan.Neil Conway