summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-01-09Make ExecEvalFieldSelect throw a more intelligible error if it's asked toTom Lane
extract a system column, and remove a couple of lines that are useless in light of the fact that we aren't ever going to support this case. There isn't much point in trying to make this work because a tuple Datum does not carry many of the system columns. Per experimentation with a case reported by Dean Rasheed; we'll have to fix his problem somewhere else.
2010-01-09During Hot Standby, set DatabasePath correctly during relcache init fileSimon Riggs
deletion, so that we attempt to unlink the correct filepath. unlink() errors are ignorable there, so lack of a DatabasePath initialization step did not cause visible problems until a related bug showed up on Solaris. Code refactored from xact_redo_commit() to ProcessCommittedInvalidationMessages() in inval.c. Recovery may replay shared invalidation messages for many databases, so we cannot SetDatabasePath() once as we do in normal backends. Read the databaseid from the shared invalidation messages, then set DatabasePath temporarily before calling RelationCacheInitFileInvalidate(). Problem report by Robert Treat, analysis and fix by me.
2010-01-09Provide regression testing for plperlu, and for plperl+plperlu interaction.Andrew Dunstan
The latter are only run if the platform can run both interpreters in the same backend.
2010-01-09Build perlchunks.h for plperl on MSVCAndrew Dunstan
2010-01-09Fix makefile so it works for VPATH case.Tom Lane
2010-01-09Tidy up and refactor plperl.c.Andrew Dunstan
- Changed MULTIPLICITY check from runtime to compiletime. No loads the large Config module. - Changed plperl_init_interp() to return new interp and not alter the global interp_state - Moved plperl_safe_init() call into check_interp(). - Removed plperl_safe_init_done state variable as interp_state now covers that role. - Changed plperl_create_sub() to take a plperl_proc_desc argument. - Simplified return value handling in plperl_create_sub. - Changed perl.com link in the docs to perl.org and tweaked wording to clarify that require, not use, is what's blocked. - Moved perl code in large multi-line C string literal macros out to plc_*.pl files. - Added a test2macro.pl utility to convert the plc_*.pl files to macros in a perlchunks.h file which is #included - Simplifed plperl_safe_init() slightly - Optimized pg_verifymbstr calls to avoid unneeded strlen()s. Patch from Tim Bunce, with minor editing from me.
2010-01-08Also update ChangerLog file.Michael Meskes
2010-01-08Fix oversight in EvalPlanQualFetch: after failing to lock a tuple becauseTom Lane
someone else has just updated it, we have to set priorXmax to that tuple's xmax (ie, the XID of the other xact that updated it) before looping back to examine the next tuple. Obviously, the next tuple in the update chain should have that XID as its xmin, not the same xmin as the preceding tuple that we had been trying to lock. The mismatch would cause the EvalPlanQual logic to decide that the tuple chain ended in a deletion, when actually there was a live tuple that should have been found. I inserted this error when recently adding logic to EvalPlanQual to make it lock tuples before returning them (as opposed to the old method in which the lock would occur much later, causing a great deal of work to be wasted if we only then discover someone else updated it). Sigh. Per today's report from Takahiro Itagaki of inconsistent results during pgbench runs.
2010-01-08pgBufferUsage needs PGDLLIMPORT for pg_stat_statements on Windows.Itagaki Takahiro
2010-01-07Document why we copy reloptions into CacheMemoryContext after-the-fact.Robert Haas
2010-01-07Fix 3-parameter form of bit substring() to throw error for negative length,Tom Lane
as required by SQL standard.
2010-01-07Make bit/varbit substring() treat any negative length as meaning "all the restTom Lane
of the string". The previous coding treated only -1 that way, and would produce an invalid result value for other negative values. We ought to fix it so that 2-parameter bit substring() is a different C function and the 3-parameter form throws error for negative length, but that takes a pg_proc change which is impractical in the back branches; and in any case somebody might be relying on -1 working this way. So just do this as a back-patchable fix.
2010-01-07Fix (some of the) breakage introduced into query-cancel processing by HS.Tom Lane
It is absolutely not okay to throw an ereport(ERROR) in any random place in the code just because DoingCommandRead is set; interrupting, say, OpenSSL in the midst of its activities is guaranteed to result in heartache. Instead of that, undo the original optimizations that threw away QueryCancelPending anytime we were starting or finishing a command read, and instead discard the cancel request within ProcessInterrupts if we find that there is no HS reason for forcing a cancel and we are DoingCommandRead. In passing, may I once again condemn the practice of changing the code and not fixing the adjacent comment that you just turned into a lie?
2010-01-07Use -Z for vacuumdb --analyze-only, rather than -o.Bruce Momjian
2010-01-07Rename new vacuumdb option to --analyze-only from --only-analyze.Bruce Momjian
2010-01-07Remove all the special-case code for INT64_IS_BUSTED, per decision thatTom Lane
we're not going to support that anymore. I did keep the 64-bit-CRC-with-32-bit-arithmetic code, since it has a performance excuse to live. It's a bit moot since that's all ifdef'd out, of course.
2010-01-07More tablespace.c comment improvements.Bruce Momjian
2010-01-07Clarify tablespace.c::TablespaceCreateDbspace() comments.Bruce Momjian
2010-01-07Further fixes for per-tablespace options patch.Robert Haas
Add missing varlena header to TableSpaceOpts structure. And, per Tom Lane, instead of calling tablespace_reloptions in CacheMemoryContext, call it in the caller's memory context and copy the value over afterwards, to reduce the chances of a session-lifetime memory leak.
2010-01-07Improve a couple of comments relating to large object snapshot management.Robert Haas
2010-01-07Alter the configure script to fail immediately if the C compiler does notTom Lane
provide a working 64-bit integer datatype. As recently noted, we've been broken on such platforms since early in the 8.4 development cycle. Since it took nearly two years for anyone to even notice, it seems that the rationale for continuing to support such platforms has reached the point of non-existence. Rather than thrashing around to try to make it work again, we'll just admit up front that this no longer works. Back-patch to 8.4 since that branch is also broken. We should go around to remove INT64_IS_BUSTED support, but just in HEAD, so that seems like material for a separate commit.
2010-01-06PG_MAJORVERSION:Bruce Momjian
For simplicity, use PG_MAJORVERSION rather than PG_VERSION for creation of the PG_VERSION file.
2010-01-06Fix spccache.c to not suppose that a cache entry will live across databaseTom Lane
access, per testing with CLOBBER_CACHE_ALWAYS. Minor other editorialization.
2010-01-06Access hash entry before freeing it, not after.Tom Lane
2010-01-06Make error messages for bad --set-version argument more useful.Tom Lane
Per Stefan.
2010-01-06Make the makefile pass $MAJORVERSION to genbki.pl, not $VERSION which isTom Lane
overridden in the snapshot build script. $MAJORVERSION is what it really wanted anyway, so we can tighten up the parsing of --set-version's argument.
2010-01-06Corrected CVS entry:Bruce Momjian
--only-analyze mode is for _vacuumdb_, not pg_dump.
2010-01-06Replaced int64_t with int64 as Andrew suggested.Michael Meskes
2010-01-06Remove __FUNCTION__ keyword that is not recognized by som compilers.Michael Meskes
2010-01-06Removed test case using nan as float value because printf's output for nan isMichael Meskes
OS specific with some distinguishing between signaling and quiet nans. It's not really importnat for us here anyway.
2010-01-06Removed more inttypes.h stuff.Michael Meskes
2010-01-06Silence compiler warning about uninitialized variables. This initializationItagaki Takahiro
is not necessary needed, but some compilers complain about it.
2010-01-06Applied Zoltan's patch to remove hardware dependant offset logging andMichael Meskes
superfluous include files.
2010-01-06Support rewritten-based full vacuum as VACUUM FULL. TraditionalItagaki Takahiro
VACUUM FULL was renamed to VACUUM FULL INPLACE. Also added a new option -i, --inplace for vacuumdb to perform FULL INPLACE vacuuming. Since the new VACUUM FULL uses CLUSTER infrastructure, we cannot use it for system tables. VACUUM FULL for system tables always fall back into VACUUM FULL INPLACE silently. Itagaki Takahiro, reviewed by Jeff Davis and Simon Riggs.
2010-01-06binary upgrade:Bruce Momjian
Preserve relfilenodes for views and composite types --- even though we don't store data in, them, they do consume relfilenodes. Bump catalog version.
2010-01-06Remove erroneous comma added to pg_dumpall tablespace query when runningBruce Momjian
with PG version 8.2-8.4.
2010-01-06Update catalog version for recent relfilenode patch, so pg_migrator canBruce Momjian
identify the new API.
2010-01-06Preserve relfilenodes:Bruce Momjian
Add support to pg_dump --binary-upgrade to preserve all relfilenodes, for use by pg_migrator.
2010-01-06pg_dump --only-analyzeBruce Momjian
Implement pg_dump --only-analyze for use by pg_migrator to only analyze all databases.
2010-01-06Remove tabs in SGML.Bruce Momjian
Move OIDCHARS to proper include file.
2010-01-06Use OIDCHARS:Bruce Momjian
Use OIDCHARS for oid character length, rather than '10', in tablespace code.
2010-01-05Add support for doing FULL JOIN ON FALSE. While this is really a ratherTom Lane
peculiar variant of UNION ALL, and so wouldn't likely get written directly as-is, it's possible for it to arise as a result of simplification of less-obviously-silly queries. In particular, now that we can do flattening of subqueries that have constant outputs and are underneath an outer join, it's possible for the case to result from simplification of queries of the type exhibited in bug #5263. Back-patch to 8.4 to avoid a functionality regression for this type of query.
2010-01-05Support ALTER TABLESPACE name SET/RESET ( tablespace_options ).Robert Haas
This patch only supports seq_page_cost and random_page_cost as parameters, but it provides the infrastructure to scalably support many more. In particular, we may want to add support for effective_io_concurrency, but I'm leaving that as future work for now. Thanks to Tom Lane for design help and Alvaro Herrera for the review.
2010-01-05Fix genbki.pl and Gen_fmgrtab.pl to use PID-specific temp file names,Tom Lane
so that it's safe if a parallel make chooses to run two concurrent copies. Also, work around a memory leak in some versions of Perl.
2010-01-05And another oneMichael Meskes
2010-01-05And another one of the same problem.Michael Meskes
2010-01-05And then forgot to commit the fixed files. ARGH!Michael Meskes
2010-01-05Ah, should read the file completely. I got so used to git that I almost ↵Michael Meskes
forgot about the cvs stuff.
2010-01-05Thrid try. It seems my two checkouts need some cleaning up.Michael Meskes
2010-01-05Still not correct.Michael Meskes