1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-09 13:09:39 +03:00
Commit Graph

14367 Commits

Author SHA1 Message Date
Barry Lind
d3038e6e2c up build # to 108 2003-02-09 23:43:41 +00:00
Barry Lind
3448835967 Merge changes from head to 7.3 branch: better error message on character set conversion problems and patch from Kris Jurka for numeric scale
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/errors.properties
 	jdbc/org/postgresql/core/Encoding.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-02-09 23:41:46 +00:00
Tom Lane
521d70f661 Revise mechanism for getting rid of temp tables at backend shutdown.
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-07 01:33:39 +00:00
Tom Lane
c228ef1587 Avoid generating relid lists with duplicate entries. Fixes bugs
reported by Stefanos Harhalakis 2/2/2003.
2003-02-07 00:02:43 +00:00
Tom Lane
2425ab3ece Fix core dump when pltcl_elog is called with wrong number of parameters,
per report from Ian Harding.
2003-02-06 17:02:22 +00:00
Tatsuo Ishii
de42a5f53d Fix regexp slowness reported by Wade Klaver. 2003-02-06 00:00:24 +00:00
Tom Lane
47729caf2d Allow qualified type names in CREATE CAST, DROP CAST. Also allow the
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-05 20:16:55 +00:00
Dave Cramer
62ca0fce8f Fix for rollback SQLException from Kris Jurka 2003-02-04 11:16:00 +00:00
Bruce Momjian
caa72ad57f Add mention of CURRENT_SCHEMA for object creation. REL7_3_2 2003-02-03 15:57:03 +00:00
Tom Lane
0f36c544d9 Brand 7.3.2. 2003-02-02 19:56:46 +00:00
Tom Lane
84fdea1be7 Update release history for 7.3.2. 2003-02-02 19:48:30 +00:00
Tom Lane
e59750d684 Fix nodeUnique to behave correctly when reversing direction after reaching
either end of subplan results.  This prevents misbehavior of cursors
on SELECT DISTINCT ... queries.  Per bug report 1-Feb-02.
2003-02-02 19:09:08 +00:00
Tom Lane
d77c6396bb Remove restriction that cast functions cannot be volatile. This
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-01 22:09:41 +00:00
Tom Lane
af30b95618 Cleaner solution to the problem of loading pre-7.3 dumps containing
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-01 22:07:14 +00:00
Tom Lane
90ad65a8ab Changes of 6-Sep-02 broke pg_restore's ability to recognize tar-format
files.  Fix it.
2003-02-01 19:29:26 +00:00
Tom Lane
c80184552f Fix assign_session_authorization() to not be confused by all-numeric
user names.  Per recent reports.
2003-02-01 18:31:37 +00:00
Tom Lane
3be050da32 Prevent core dump from calling Tcl_DontCallWhenDeleted() with a null
interp pointer.  Per report from Gerhard Hintermayer.
2003-02-01 00:22:23 +00:00
Tom Lane
a85d1d5468 Apply ljb's patch to prevent both memory leak and core dump during
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-02-01 00:07:19 +00:00
Tom Lane
c8d7686c70 Make plpython's spi_execute interface handle NULLs properly.
From Andrew Bosma.
2003-01-31 22:35:27 +00:00
Tom Lane
4ff31fbd01 Clean up plpython error reporting so that its regression test passes
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-31 22:25:18 +00:00
Tom Lane
b52fe8dcc8 Tweak bison build rules so that we get the same error messages from
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-31 20:58:28 +00:00
Tom Lane
bb0c948bb0 Handle mixed-case names properly in plpgsql_parse_tripwordtype.
From Neil Conway.
2003-01-31 00:32:00 +00:00
Tom Lane
5c508b7da1 Fix regression in .pgpass support. From Neil Conway. 2003-01-30 19:50:07 +00:00
Tom Lane
cc16e49789 Update release history for 7.2.4. 2003-01-29 22:13:56 +00:00
Tom Lane
d6242b373b SPI_exec shouldn't return SPI_OK_SELECT if it hasn't actually returned
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-29 15:24:57 +00:00
Tom Lane
726b7f3b3c Repair array subscript overrun identified by Yichen Xie. Reduce the
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-29 01:09:03 +00:00
Tom Lane
8672494da5 Fix array subscript overruns identified by Yichen Xie. 2003-01-29 01:01:15 +00:00
Tom Lane
c95ed02c49 Convert variable name to canonical spelling before checking for matches
in GUCArrayAdd/GUCArrayDelete.  This prevents the multiple-entry bug
exhibited by Frank Lupo 28-Jan-2003.
2003-01-28 18:04:13 +00:00
Bruce Momjian
93c3f36d22 Revert off setting mention for client_min_messages.
Set log_min_error_messages to the proper and agreed-upon default, PANIC
(off).  (BACKPATCH)
2003-01-28 03:44:09 +00:00
Tom Lane
938a562d22 Prevent core dump when die_horribly() is called with null AH pointer.
Problem reported and fixed by Oliver Elphick.
2003-01-27 00:23:49 +00:00
Tom Lane
a307ee1ccb Back-patch fix for not shell-quoting editor name, as it also fixes
silly buffer overrun (someone needs to learn to count characters...)
2003-01-24 05:23:55 +00:00
Tom Lane
a825ad2bda Fix obsolete error message (isImmutable doesn't exist). 2003-01-23 15:18:50 +00:00
Tom Lane
01376c215c Change CREATE TABLE AS / SELECT INTO to create the new table with OIDs,
for backwards compatibility with pre-7.3 behavior.  Per discussion on
pgsql-general and pgsql-hackers.
2003-01-23 05:10:57 +00:00
Tom Lane
d73531209c Update 'Mathematical Functions' table to reflect 7.3 addition of float8
forms of ceil(), floor(), sign().  Back-patch this and other recent
doc fixes in this file to the 7.3 branch.
2003-01-23 01:23:14 +00:00
Tom Lane
c0f8da118b Make estimation of mergejoin scan selectivities more robust, per recent
example from RaÇl GutiÅrrez.
2003-01-22 20:17:07 +00:00
Tom Lane
1f74045675 Fix coredump problem in plpgsql's RETURN NEXT. When a SELECT INTO
that's selecting into a RECORD variable returns zero rows, make it
assign an all-nulls row to the RECORD; this is consistent with what
happens when the SELECT INTO target is not a RECORD.  In support of
this, tweak the SPI code so that a valid tuple descriptor is returned
even when a SPI select returns no rows.
2003-01-21 22:06:36 +00:00
Tom Lane
08b798e2ba Back-patch typprtlen fix, two other minor post-7.3 fixes. 2003-01-21 19:57:50 +00:00
Tom Lane
c0f0d709e6 Fix bogus formatting of DROP DATABASE command, per Christopher Kings-Lynne. 2003-01-16 15:28:06 +00:00
Tom Lane
db398d05be Repair an embarrassingly large number of alphabetization mistakes in the
datetime token tables.  Even more embarrassing, the regression tests
revealed some of the problems --- but evidently the bogus output wasn't
questioned.  Add code to postmaster startup to directly check the tables
for correct ordering, in hopes of not being embarrassed like this again.
2003-01-16 00:27:17 +00:00
Bruce Momjian
1fb7158124 More comment cleanups for shared_buffers in postgresql.conf. 2003-01-15 20:50:18 +00:00
Bruce Momjian
430fd35368 Update shared_buffer comment in postgresql.conf. 2003-01-15 20:41:33 +00:00
Bruce Momjian
7112d38c7e This patch fixes an incorrect statement and makes a few cleanups to
contrib/fulltextindex/README.fti

Backpatched to 7.3.X too.

Neil Conway
2003-01-15 16:45:34 +00:00
Barry Lind
3b8147a003 Bumped up build number to 107 2003-01-14 09:40:48 +00:00
Barry Lind
3f479efa2f Backport to 7.3 of patch to correctly handle fractional seconds
Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
 	jdbc/org/postgresql/test/jdbc2/TimestampTest.java
2003-01-14 09:15:35 +00:00
Barry Lind
3ff4496454 Patch from Kris Jurka to improve the performance of getImportedKeys(). The
fix uses explicit joins to avoid using the genetic query optimizer for
consistent results.

 Modified Files:
  Tag: REL7_3_STABLE
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2003-01-14 05:07:56 +00:00
Bruce Momjian
fbc590fd6c Fix capitalization. 2003-01-11 21:03:21 +00:00
Tom Lane
7680826848 Cause symlinks for shared-library versioning to run in the standard
direction on HP-UX; our former approach has been obsolete since HPUX 9.

Giles Lean
2003-01-11 17:22:34 +00:00
Tatsuo Ishii
8b434d647e Fix typo in an error messages 2003-01-11 06:59:30 +00:00
Bruce Momjian
8ca66703e2 > > This patch improves the documentation for the shared_buffers GUC param.
>
> I'd suggest that the runtime.sgml description explicitly say "values of
> at least a few thousand are recommended for production installations".

Neil Conway
2003-01-11 05:04:27 +00:00
Bruce Momjian
295ece4a0c A tiny patch to fix a typo in configure.in and another one in
RELEASE_CHANGES.

Manfred Koizar
2003-01-11 04:59:08 +00:00