summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2003-02-09Better error message on character set mismatches during conversion to unicode.Barry Lind
Also applied patch from Lars Stenberg to make callable statements use the form select * from func() when running against a 7.3 server instead of select func() to allow for set returning functions to be called. Modified Files: jdbc/org/postgresql/errors.properties jdbc/org/postgresql/core/Encoding.java jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
2003-02-09Create a distinction between Lists of integers and Lists of OIDs, to getTom Lane
rid of the assumption that sizeof(Oid)==sizeof(int). This is one small step towards someday supporting 8-byte OIDs. For the moment, it doesn't do much except get rid of a lot of unsightly casts.
2003-02-09Remove bogus comment (too freely copied & pasted).Tom Lane
2003-02-09Make further use of new bitmapset code: executor's chgParam, extParam,Tom Lane
locParam lists can be converted to bitmapsets to speed updating. Also, replace 'locParam' with 'allParam', which contains all the paramIDs relevant to the node (i.e., the union of extParam and locParam); this saves a step during SetChangedParamList() without costing anything elsewhere.
2003-02-08Replace planner's representation of relation sets, per pghackers discussion.Tom Lane
Instead of Lists of integers, we now store variable-length bitmap sets. This should be faster as well as less error-prone.
2003-02-07applied Kris Jurka's patch for numericDave Cramer
2003-02-07Revise mechanism for getting rid of temp tables at backend shutdown.Tom Lane
Instead of grovelling through pg_class to find them, make use of the handy dandy dependency mechanism: just delete everything that depends on our temp schema. Unlike the pg_class scan, the dependency mechanism is smart enough to delete things in an order that doesn't fall foul of any dependency restrictions. Fixes problem reported by David Heggie: a temp table with a serial column may cause a backend FATAL exit at shutdown time, if it chances to try to delete the temp sequence first.
2003-02-06Make flatten_join_alias_vars() do the right thing when expanding an aliasTom Lane
referenced from a subquery. Per example from Stefanos Harhalakis.
2003-02-06Create a GUC variable REGEX_FLAVOR to control the type of regularTom Lane
expression accepted by the regex operators, per discussion yesterday. Along the way, reduce deadlock_timeout from PGC_POSTMASTER to PGC_SIGHUP category. It is probably best to insist that all backends share the same setting, but that doesn't mean it has to be frozen at startup.
2003-02-06Fix core dump when pltcl_elog is called with wrong number of parameters,Tom Lane
per report from Ian Harding.
2003-02-05Allow qualified type names in CREATE CAST, DROP CAST. Also allow theTom Lane
construction 'SETOF type[]' which for some reason was previously overlooked (you'd have to name the array type directly to make it work).
2003-02-05Replace regular expression package with Henry Spencer's latest versionTom Lane
(extracted from Tcl 8.4.1 release, as Henry still hasn't got round to making it a separate library). This solves a performance problem for multibyte, as well as upgrading our regexp support to match recent Tcl and nearly match recent Perl.
2003-02-05patch from Oliver Jowett to implement some of the jdbc3 methodsDave Cramer
2003-02-04Applied Kris Jurkas patch to fix rollback and SQLExceptionDave Cramer
2003-02-04applied patch from Oliver JowettDave Cramer
2003-02-04Two patches from Kris Jurka. One fixes a problem with incorrect type for doubleBarry Lind
and the other fixes a NPE in Statement.toString() under some circumstances. The second patch was originally submitted by Oliver Jowett and updated by Kris
2003-02-04Patch from Nic Ferrier to add support for result sets being cursor basedBarry Lind
so that rows can be fetched incrementally. This is enabled by using setFetchSize()
2003-02-04Minor code cleanup: remove no-longer-useful pull_subplans() function,Tom Lane
and convert pull_agg_clause() into count_agg_clause(), which is a more efficient way of doing what it's really being used for.
2003-02-04Detect duplicate aggregate calls and evaluate only one copy. ThisTom Lane
speeds up some useful real-world cases like SELECT x, COUNT(*) FROM t GROUP BY x HAVING COUNT(*) > 100.
2003-02-03#ifdef out stuff that shouldn't be compiled when not USE_SSL.Tom Lane
Curious that gcc doesn't complain about unreferenced static variables.
2003-02-03Determine the set of constraints applied to a domain at executorTom Lane
startup, not in the parser; this allows ALTER DOMAIN to work correctly with domain constraint operations stored in rules. Rod Taylor; code review by Tom Lane.
2003-02-03Don't print NO ACTION foreign key actions in dumps and psql \d.Bruce Momjian
2003-02-03Tweak planner and executor to avoid doing ExecProject() in table scanTom Lane
nodes where it's not really necessary. In many cases where the scan node is not the topmost plan node (eg, joins, aggregation), it's possible to just return the table tuple directly instead of generating an intermediate projection tuple. In preliminary testing, this reduced the CPU time needed for 'SELECT COUNT(*) FROM foo' by about 10%.
2003-02-03Move pg_service.conf.sample to /interfaces/libpq.Bruce Momjian
2003-02-03Change MOVE LAST to MOVE ALL.Bruce Momjian
Standard says FETCH LAST is after last row, and we don't do that.
2003-02-02Implement EXPLAIN EXECUTE. By Neil Conway, with some kibitzing fromTom Lane
Tom Lane.
2003-02-02Fix nodeUnique to behave correctly when reversing direction after reachingTom Lane
either end of subplan results. This prevents misbehavior of cursors on SELECT DISTINCT ... queries. Per bug report 1-Feb-02.
2003-02-01Remove restriction that cast functions cannot be volatile. ThisTom Lane
restriction was debatable to begin with, but it has now become obvious that it breaks forward-porting of user-defined types; contrib/lo being the most salient example.
2003-02-01Cleaner solution to the problem of loading pre-7.3 dumps containingTom Lane
columns of type lo (see contrib/lo). Rather than hacking the function definitions on-the-fly, just modify the queries issued by FixupBlobRefs so that they work even if CREATE CAST hasn't been issued.
2003-02-01Changes of 6-Sep-02 broke pg_restore's ability to recognize tar-formatTom Lane
files. Fix it.
2003-02-01Fix assign_session_authorization() to not be confused by all-numericTom Lane
user names. Per recent reports.
2003-02-01Prevent core dump from calling Tcl_DontCallWhenDeleted() with a nullTom Lane
interp pointer. Per report from Gerhard Hintermayer.
2003-02-01Apply ljb's patch to prevent both memory leak and core dump duringTom Lane
connection shutdown. This is a grotty workaround for a Tcl bug, but said bug has been there long enough that I'm not holding my breath for a real fix. Per discussions and testing from ljb and g.hintermayer.
2003-01-31Make plpython's spi_execute interface handle NULLs properly.Tom Lane
From Andrew Bosma.
2003-01-31Clean up plpython error reporting so that its regression test passesTom Lane
with some amount of cleanliness. I see no need to report the internal Python name rather than the SQL procedure name in error tracebacks.
2003-01-31Tweak bison build rules so that we get the same error messages fromTom Lane
bison 1.875 and later as we did from earlier bison releases. Eventually we will probably want to adopt the newer message spelling ... but not yet. Per recent discussion on pgpatches. Note: I didn't change the build rules for bootstrap, ecpg, or plpgsql grammars, since these do not affect regression test results.
2003-01-31Allow a time zone to be specified (and silently ignored) in the inputTom Lane
for type 'time without time zone', as we already did for type 'timestamp without time zone'. This patch was proposed by Tom Lockhart on 7-Nov-02, but he never got around to applying it. Adjust regression tests and documentation to match.
2003-01-31Handle mixed-case names properly in plpgsql_parse_tripwordtype.Tom Lane
From Neil Conway.
2003-01-30Fix regression in .pgpass support. From Neil Conway.Tom Lane
2003-01-29SPI_exec shouldn't return SPI_OK_SELECT if it hasn't actually returnedTom Lane
a tuple table. Fixes core dump in pltcl (and probably other PLs) when executing a query rewritten by a rule. Per bug report from Wolfgang Walter.
2003-01-29Update release steps.Bruce Momjian
2003-01-29Tweak ArrayCount() to forestall possible access to temp[-1]. ProblemTom Lane
cannot actually happen at present because ArrayCount() is only called on strings beginning with '{', but seems best to prevent it going forward. Per report from Yichen Xie.
2003-01-29Guard against array overrun, per report from Yichen Xie. This caseTom Lane
can only occur if the constant DEFAULT_CLIENT_AUTHSVC is given a bogus value, so it doesn't seem worth back-patching, but I'll fix it in HEAD.
2003-01-29Repair array subscript overrun identified by Yichen Xie. Reduce theTom Lane
value of MAX_TIME_PRECISION in floating-point-timestamp-storage case from 13 to 10, which is as much as time_out is actually willing to print. (The alternative of increasing the number of digits we are willing to print looks risky; we might find ourselves printing roundoff garbage.)
2003-01-29Fix array subscript overruns identified by Yichen Xie.Tom Lane
2003-01-28Extend join-selectivity API (oprjoin interface) so that join type isTom Lane
passed to join selectivity estimators. Make use of this in eqjoinsel to derive non-bogus selectivity for IN clauses. Further tweaking of cost estimation for IN. initdb forced because of pg_proc.h changes.
2003-01-28Convert variable name to canonical spelling before checking for matchesTom Lane
in GUCArrayAdd/GUCArrayDelete. This prevents the multiple-entry bug exhibited by Frank Lupo 28-Jan-2003.
2003-01-28Revert off setting mention for client_min_messages.Bruce Momjian
Set log_min_error_messages to the proper and agreed-upon default, PANIC (off). (BACKPATCH)
2003-01-28Revert optimizer page count change.Bruce Momjian
2003-01-27Set log_min_error_messages to the proper and agreed-upon default, PANIC (off).Bruce Momjian
Backpatch to 7.3.X.