Commit Graph

19835 Commits

Author SHA1 Message Date
Andrew Dunstan
0622b1d738 Provide a --no-locale option for pg_regress and a corresponding NOLOCALE=1
setting for the regression makefile, allowing Windows users to force locale
settings since Windows does not get its locale from the environment.

Per Petr Jelinek.
2005-11-01 15:32:52 +00:00
Bruce Momjian
c3d56155d4 Properly update the 'group' flatfile when modifying the user, in case
they were added to a group.  Also fix visibility of our own changes when
creating the group file.  This fixes:

        test=> CREATE GROUP g1;
        CREATE GROUP

        test=> CREATE USER u1 IN GROUP g1;
        CREATE USER
        test=> \! cat /u/pg/data/global/pg_group
        "g1"    "u1"

        test=> CREATE USER u2 IN GROUP g1;
        CREATE USER
        test=> \! cat /u/pg/data/global/pg_group
        "g1"    "u1" "u2"

        test=> ALTER USER u2 RENAME TO u3;
        ALTER USER
        test=> \! cat /u/pg/data/global/pg_group
        "g1"    "u1" "u3"

[ this code does not exist in CVS head.]

Per report from Dennis Vshivkov
2005-10-26 13:43:28 +00:00
Bruce Momjian
8f03406ee9 Update AIX FAQ, backpatch. 2005-10-26 13:20:47 +00:00
Tom Lane
15b46f121f Fix longstanding bug that would sometimes let the planner generate a bad plan
for an outer join; symptom is bogus error "RIGHT JOIN is only supported with
merge-joinable join conditions".  Problem was that select_mergejoin_clauses
did its tests in the wrong order.  We need to force left join not right join
for a merge join when there are non-mergeable join clauses; but the test for
this only accounted for mergejoinability of the clause operator, and not
whether the left and right Vars were of the proper relations.  Per report
from Jean-Pierre Pelletier.
2005-10-25 20:30:35 +00:00
Tom Lane
ea19eb999d Postpone pg_timezone_initialize() until after creation of postmaster.pid,
since it can take a fair amount of time and this can confuse boot scripts
that expect postmaster.pid to appear quickly.  Move initialization of SSL
library and preloaded libraries to after that point, too, just for luck.
Per reports from Tony Caduto and others.
2005-10-20 20:06:03 +00:00
Tom Lane
09290098c5 Prevent core dump in contrib version of autovacuum when a table has been
dropped.  Per report from daveg (not his patch, though).
2005-10-20 16:14:39 +00:00
Tom Lane
fd5efffc15 Back-patch fix for proper labeling of whole-row Datums generated from
subquery results.
2005-10-19 22:51:26 +00:00
Tom Lane
98658dd404 Pass a strdup'd ident string to openlog(), to ensure that reallocation
of GUC memory doesn't cause us to start emitting a bogus ident string.
Per report from Han Holl.  Also some trivial code cleanup in write_syslog.
2005-10-14 16:41:13 +00:00
Bruce Momjian
7df6dfdda7 [ Backpatch to 8.0.X.]
Also I fixed a bug in a bug fix I committed a few weeks ago. he check
for a varchar pointer was incomplete.

Michael Meskes
2005-10-14 01:50:23 +00:00
Tom Lane
00de66a3b4 Fix longstanding bug found by Atsushi Ogawa: _bt_check_unique would mark
the wrong buffer dirty when trying to kill a dead index entry that's on
a page after the one it started on.  No risk of data corruption, just
inefficiency, but still a bug.
2005-10-12 17:18:15 +00:00
Neil Conway
592ca3cf06 Fix typo in sample pg_hba.conf; per IRC report from Bernhard Neuhauser. 2005-10-11 22:59:11 +00:00
Tom Lane
d30c134806 Fix oversight in 8.0 modification of RestrictInfo data structures.
A RestrictInfo representing an OR clause now contains two versions of
the contained expression, one with sub-RestrictInfos and one without.
clause_selectivity() should descend to the version with sub-RestrictInfos
so that it has a chance of caching its results for the OR's sub-clauses.
Failing to do so resulted in redundant planner effort.
2005-10-11 16:45:00 +00:00
Neil Conway
20f5a328e5 Backpatch merge_db() example for PL/PgSQL to 8.0. Patch from David
Fetter, fixes by Neil Conway.
2005-10-06 21:21:27 +00:00
Bruce Momjian
ce150c4a8b Update Japanese FAQ.
Jun Kuwamura
2005-10-05 11:51:27 +00:00
Bruce Momjian
b0db380b09 Update version number in faq. 2005-10-05 11:27:10 +00:00
Bruce Momjian
2a3f44b769 Update FAQ's in 8.0.X branch. (very small changes) 2005-10-04 14:18:43 +00:00
Bruce Momjian
610a7c6fdc Add FAQ_hungarian.html to 8.0.X branch. 2005-10-04 14:17:44 +00:00
Tom Lane
3dfec7f73e COPY's test for read-only transaction was backward; it prohibited COPY TO
where it should prohibit COPY FROM.  Found by Alon Goldshuv.
2005-10-03 23:43:29 +00:00
Tom Lane
73a71f50cd Stamp release 8.0.4. 2005-10-03 17:07:18 +00:00
Tom Lane
65ae842791 Update release notes for pending back-branch releases. 2005-10-03 16:04:51 +00:00
Tom Lane
e1684062bc Preserve tuple OIDs during ATRewriteTable. Per gripe from Duncan Crombie. 2005-10-03 02:45:25 +00:00
Tom Lane
7aef1bfd1f Repair planning bug introduced in 7.4: outer-join ON clauses that referenced
only the inner-side relation would be considered as potential equijoin clauses,
which is wrong because the condition doesn't necessarily hold above the point
of the outer join.  Per test case from Kevin Grittner (bug#1916).
2005-09-28 21:17:24 +00:00
Alvaro Herrera
92cdd00c05 Translation updates for the 8.0 branch 2005-09-28 13:11:00 +00:00
Bruce Momjian
0326d705ab Update Russian FAQ.
Victor Vislobokov
2005-09-28 11:33:42 +00:00
Bruce Momjian
341c3399da Backpatch to 8.0.X:
In several places PL/Python was calling PyObject_Str() and then
PyString_AsString() without checking if the former had returned
NULL to indicate an error.  PyString_AsString() doesn't expect a
NULL argument, so passing one causes a segmentation fault.  This
patch adds checks for NULL and raises errors via PLy_elog(), which
prints details of the underlying Python exception.  The patch also
adds regression tests for these checks.  All tests pass on my
Solaris 9 box running HEAD and Python 2.4.1.
2005-09-23 21:02:37 +00:00
Bruce Momjian
9516724bd7 Update FAQ's in 8.0.X branch. 2005-09-22 22:14:11 +00:00
Bruce Momjian
b3af584d7d Return proper value for psql -f filename failure if filename open fails.
Backpatch to 8.0.X.
2005-09-20 18:59:15 +00:00
Teodor Sigaev
b4d107a777 Update Snowball. I have to update it because of
old version doesn't available on Snowball's site and new version
of stemmers can't be compiled with old interface.
2005-09-15 11:56:58 +00:00
Tom Lane
8080e8e8ce Ensure that any memory leaked during an error inside the bgwriter is
recovered.  I did not see any actual leak while testing this in CVS tip,
but 8.0 definitely has a problem with leaking the space temporarily
palloc'd by BufferSync().  In any case this seems a good idea to forestall
similar problems in future.  Per report from Arjen van der Meijden.
2005-09-12 22:20:30 +00:00
Neil Conway
3926b6e9c3 Fix a mistake in the documentation for SPI_getbinval(), per Michael Fuhr. 2005-09-12 18:49:08 +00:00
Michael Meskes
39f27463b3 Fixed transaction command handling to not ignore savepoints and to correctly check for errors. 2005-09-12 11:58:33 +00:00
Tom Lane
3e711451f1 Avoid changing stdin/stdout to binary mode on Windows unless that is
really the source or destination of the archive.  I think this will
resolve recent complaints that password prompting is broken in pg_restore
on Windows.  Note that password prompting and reading from stdin is an
unworkable combination on Windows ... but that was true anyway.
2005-09-11 00:36:35 +00:00
Tom Lane
16acb8bfd3 Update regression tests for new USA timezone data. Mea culpa for not
realizing that the regression tests could be affected.
2005-09-08 16:49:18 +00:00
Tom Lane
694da2897b Update timezone data files to release 2005m of the zic database.
Among other changes, this reflects the recently passed change in USA
daylight savings rules.
2005-09-07 21:39:41 +00:00
Peter Eisentraut
57fd3d22d7 Translation update 2005-09-03 07:41:58 +00:00
Teodor Sigaev
13ff51baf2 Fix missing rows in query
update a=.. where a... with GiST index on column 'a'
2005-08-30 07:57:48 +00:00
Tom Lane
846ed05de6 Sigh, looks like you need '.set mips2' before you can access MIPS
SYNC instruction.
2005-08-29 00:41:44 +00:00
Tom Lane
9f70dce4ce Add a SYNC instruction to the S_UNLOCK sequence for MIPS. 2005-08-28 18:26:07 +00:00
Tom Lane
5677c28c91 Get the MIPS assembler syntax right. Also add a separate sync command;
the reference I consulted yesterday said SC does a SYNC, but apparently
this is not true on newer MIPS processors, so be safe.
2005-08-27 16:22:58 +00:00
Bruce Momjian
9a6f3630cf Fix typo:
sql_information_info -> sql_implementation_info

Robert Treat
2005-08-27 14:13:31 +00:00
Tom Lane
51aebb07c3 Another try at the inlined MIPS spinlock code. Can't test this myself,
but for sure it's not any more broken than the prior version.
2005-08-26 22:04:53 +00:00
Tom Lane
8c3cf25225 Back-port recent MIPS and M68K spinlock improvements to 8.0 branch. 2005-08-26 14:48:13 +00:00
Tom Lane
08e12b89d5 Back-patch fixes for problems with VACUUM destroying t_ctid chains too soon,
and with insufficient paranoia in code that follows t_ctid links.
This patch covers the 8.0 branch.
2005-08-25 19:45:06 +00:00
Michael Meskes
5576a611cd - Check for NULL before checking whether argument is an array.
- Removed stray character from string quoting.
	- Fixed check to report missing varchar pointer implementation.
2005-08-24 10:35:12 +00:00
Tom Lane
9b4296abe0 Fix broken lrand48() implementation, per Merlin Moncure. 2005-08-23 13:31:19 +00:00
Tom Lane
01bc28d48a Invoke mksafefunc and mkunsafefunc with :: decoration. This seems a good
idea on consistency grounds, whether or not it really fixes bug #1831.
Michael Fuhr
2005-08-20 19:19:31 +00:00
Tom Lane
f468542b10 Remove unnecessary configure test for inet_ntop(), per Andrew Dunstan. 2005-08-17 20:20:22 +00:00
Tom Lane
96fc1a4f77 Reject operator names >= NAMEDATALEN characters. These will not work
anyway, and in assert-enabled builds you are likely to get an assertion
failure.  Backpatch as far as 7.3; 7.2 seems not to have the problem.
2005-08-16 00:48:29 +00:00
Tom Lane
ab648632eb array_in() and array_recv() need to be more paranoid about validating
their OID parameter.  It was possible to crash the backend with
select array_in('{123}',0,0); because that would bypass the needed step
of initializing the workspace.  These seem to be the only two places
with a problem, though (record_in and record_recv don't have the issue,
and the other array functions aren't depending on user-supplied input).
Back-patch as far as 7.4; 7.3 does not have the bug.
2005-08-15 19:40:43 +00:00
Tom Lane
497f11845c int_array_enum function should be using fcinfo->flinfo->fn_extra for
working state, not fcinfo->context.  Silly oversight on my part in last
go-round of fixes.
2005-08-15 19:05:30 +00:00