Vadim B. Mikheev [Fri, 3 Nov 2000 11:39:36 +0000 (11:39 +0000)]
pg_variable is not used in WAL version now.
Michael Meskes [Fri, 3 Nov 2000 10:47:54 +0000 (10:47 +0000)]
Parser sync.
Tom Lane [Thu, 2 Nov 2000 23:52:06 +0000 (23:52 +0000)]
Improve inv_getsize() per suggestion from Denis Perchine; also fix
thinkos in inv_seek().
Tom Lane [Thu, 2 Nov 2000 23:20:27 +0000 (23:20 +0000)]
Peter forgot to fix {operator} rule to match modified definition of
'self' characters.
Tom Lane [Thu, 2 Nov 2000 23:11:03 +0000 (23:11 +0000)]
Fix insufficiently-parenthesized macro definitions.
No known bug here, but...
Bruce Momjian [Thu, 2 Nov 2000 22:04:51 +0000 (22:04 +0000)]
Remove pg_dumpaccounts from 7.1 tree.
Bruce Momjian [Thu, 2 Nov 2000 21:16:56 +0000 (21:16 +0000)]
Update TODO list.
Peter Eisentraut [Thu, 2 Nov 2000 21:13:32 +0000 (21:13 +0000)]
Add pg_dumpall --accounts-only option.
Bruce Momjian [Thu, 2 Nov 2000 20:53:26 +0000 (20:53 +0000)]
Update TODO list.
Peter Eisentraut [Thu, 2 Nov 2000 19:48:39 +0000 (19:48 +0000)]
Allow initdb to handle relative paths for PGDATA, by converting them to
absolute before starting a backend.
Bruce Momjian [Thu, 2 Nov 2000 19:26:49 +0000 (19:26 +0000)]
Change bool to boolean in docs.
Peter Eisentraut [Thu, 2 Nov 2000 18:40:13 +0000 (18:40 +0000)]
Pass on all CPPFLAGS that look like -I* to the PL/Perl build.
(This previously worked, but must have gotten lost somewhere...)
Jan Wieck [Thu, 2 Nov 2000 18:20:12 +0000 (18:20 +0000)]
Added utility script pg_dumpaccounts to contrib.
Derived from pg_dumpall it just dumps users and groups.
Jan
Bruce Momjian [Thu, 2 Nov 2000 16:56:32 +0000 (16:56 +0000)]
autoconf
Peter Eisentraut [Wed, 1 Nov 2000 21:14:03 +0000 (21:14 +0000)]
Add runtime configuration options to control permission bits and group
owner of unix socket.
Vadim B. Mikheev [Wed, 1 Nov 2000 20:39:58 +0000 (20:39 +0000)]
Forgot to check page LSN and unlock buffer in btree_xlog_delete - fixed.
(Thanks to Tatsuo Ishii for finding bug)
Peter Mount [Wed, 1 Nov 2000 16:55:32 +0000 (16:55 +0000)]
Fixed minor bug in ResultSet for jdbc2 reported by Matthew Denner that absolute doesnt handle negative row numbers correctly.
Tatsuo Ishii [Wed, 1 Nov 2000 00:45:46 +0000 (00:45 +0000)]
Fix for PQsetdb port parameter due to the interface change.
PQsetdb no more recognize "" as the default port number.
Vadim B. Mikheev [Tue, 31 Oct 2000 23:56:36 +0000 (23:56 +0000)]
Fix recovery cache code (thanks to Peter Eisentraut for
pointing to bug).
Peter Eisentraut [Tue, 31 Oct 2000 19:55:20 +0000 (19:55 +0000)]
This is the minimal version of the Darwin support patch from
Bruce Hartzler <bruceh@mail.utexas.edu>. It contains shared library
support, regression test map, and the usual template files. The dynamic
loader is missing, the spin lock code apparently doesn't assemble due to
syntax problems, and semaphores are to be hoped for from Apple.
Peter Eisentraut [Tue, 31 Oct 2000 18:16:20 +0000 (18:16 +0000)]
Determine CXXFLAGS after the C++ compiler was detected. Also honor
--enable-debug and environment variable override.
Michael Meskes [Tue, 31 Oct 2000 15:11:38 +0000 (15:11 +0000)]
Added patch by Christof Petig <christof.petig@wtal.de> that fixes some bugs in preproc.y.
Peter Eisentraut [Tue, 31 Oct 2000 14:37:25 +0000 (14:37 +0000)]
Use $(filter ...), not $(findstring ...).
Philip Warner [Tue, 31 Oct 2000 14:20:30 +0000 (14:20 +0000)]
Added long-standing transaction when restoring BLOBS (uses commit every BLOB_BATCH_SIZE)
Prevent dumping of languages from template1.
Peter Eisentraut [Tue, 31 Oct 2000 13:59:53 +0000 (13:59 +0000)]
Change internal string representation of BitString node to include a
leading 'b', as it appears to be more convenient this way for the input
and node functions.
Peter Eisentraut [Tue, 31 Oct 2000 13:11:28 +0000 (13:11 +0000)]
Hashing functions from Marko Kreen <marko@l-t.ee>
Peter Eisentraut [Tue, 31 Oct 2000 10:22:13 +0000 (10:22 +0000)]
Change the parser to convert SQL "position" and "substring" syntax to
position() and substring() functions, so that it works transparently for
bit types as well. Alias the text functions appropriately.
Add position() for bit types.
Add new constant node T_BitString that represents literals of the form
B'1001 and pass those to zpbit type.
Peter Eisentraut [Mon, 30 Oct 2000 17:54:16 +0000 (17:54 +0000)]
Disallow zero-length delimited identifier (per SQL).
Michael Meskes [Mon, 30 Oct 2000 14:43:40 +0000 (14:43 +0000)]
Sync preproc.y with gram.y.
Tatsuo Ishii [Mon, 30 Oct 2000 13:27:13 +0000 (13:27 +0000)]
Add -enable-uniconv
Tatsuo Ishii [Mon, 30 Oct 2000 10:41:05 +0000 (10:41 +0000)]
Add support for code conversion between Unicode and other encodings.
Supported encodings are: EUC_JP, EUC_CN, EUC_KR, EUC_TW, Shift JIS,
Big5, ISO8859-[1-5].
TODO: testings! and documentations...
Tatsuo Ishii [Mon, 30 Oct 2000 10:31:46 +0000 (10:31 +0000)]
Avoid dependency on backend's multibyte module as possible.
Now frontend/libpq has its own version of pg_encoding_to_char
and pg_char_to_encoding.
Tatsuo Ishii [Mon, 30 Oct 2000 07:17:31 +0000 (07:17 +0000)]
Add new configure option "--enable-uniconv" that enables automatic
code conversion between Unicode and other encodings. Note that
this option requires --enable-multibyte also.
The reason why this is optional is that the feature requires huge
mapping tables and I don't think every user need the feature.
Tatsuo Ishii [Mon, 30 Oct 2000 06:48:36 +0000 (06:48 +0000)]
include pg_wchar.h to import a fucntion prototype of pg_mbcliplen
Vadim B. Mikheev [Sun, 29 Oct 2000 18:33:41 +0000 (18:33 +0000)]
WAL fixes.
Bruce Momjian [Sun, 29 Oct 2000 18:13:47 +0000 (18:13 +0000)]
update flags.
Peter Eisentraut [Sun, 29 Oct 2000 16:13:28 +0000 (16:13 +0000)]
Automatic dependency tracking for C++ (GCC only)
Peter Eisentraut [Sun, 29 Oct 2000 16:11:33 +0000 (16:11 +0000)]
Remove special treatment of '|' operator, in the spirit of "sane" binary
operators.
Peter Eisentraut [Sun, 29 Oct 2000 13:17:34 +0000 (13:17 +0000)]
USE_POSIX_TIME replaced by HAVE_TM_ZONE || HAVE_INT_TIMEZONE, which are
equivalent.
In linux.h there were some #undef HAVE_INT_TIMEZONE, which are useless
because HAVE_TM_ZONE overrides it anyway, and messing with configure
results isn't cool.
Peter Eisentraut [Sun, 29 Oct 2000 12:49:49 +0000 (12:49 +0000)]
Omit perl and python interfaces when making temporary installation.
Peter Eisentraut [Sun, 29 Oct 2000 11:36:44 +0000 (11:36 +0000)]
Should be "test =", not "test ==".
Michael Meskes [Sun, 29 Oct 2000 09:44:58 +0000 (09:44 +0000)]
Removed multibyte stuff since client does not know about encoding in the backendFixed quoting bug reported by Sascha Demetrio (sd@b-comp.de).
Peter Eisentraut [Sat, 28 Oct 2000 23:53:01 +0000 (23:53 +0000)]
#define JMP_BUF has been unnecessary since the arrival of the sigsetjmp
test.
Peter Eisentraut [Sat, 28 Oct 2000 22:53:17 +0000 (22:53 +0000)]
As we don't use struct dirent, the #define SYSV_DIRENT is useless. If we
every do need it we'd better use AC_HEADER_DIRENT from Autoconf.
#define NO_EMPTY_STMTS is completely unused.
Peter Eisentraut [Sat, 28 Oct 2000 22:14:14 +0000 (22:14 +0000)]
Make initdb safe against using
a) mismatching backend program, by checking --version output
b) mismatching bki files, by putting a version-identifying comment atop
those files.
Bruce Momjian [Sat, 28 Oct 2000 19:41:00 +0000 (19:41 +0000)]
Back out change to gram.y for parens.
Bruce Momjian [Sat, 28 Oct 2000 18:27:57 +0000 (18:27 +0000)]
beos fixes from Cyril VELTER
Vadim B. Mikheev [Sat, 28 Oct 2000 16:21:00 +0000 (16:21 +0000)]
WAL
Bruce Momjian [Sat, 28 Oct 2000 15:44:04 +0000 (15:44 +0000)]
Okay, here's my attempt at fixing the problems with parentheses in
subqueries. It passes the normal 'runcheck' tests, and I've tried
a few simple things like
select 1 as foo union (((((select 2))))) order by foo;
There are a few things that it doesn't do that have been talked
about here at least a little:
1) It doesn't allow things like "IN(((select 1)))" -- the select
here has to be at the top level. This is not new.
2) It does NOT preserve the odd syntax I found when I started looking
at this, where a SELECT statement could begin with parentheses. Thus,
(SELECT a from foo) order by a;
fails.
I have preserved the ability, used in the regression tests, to
have a single select statement in what appears to be a RuleActionMulti
(but wasn't -- the parens were part of select_clause syntax).
In my version, this is a special form.
This may cause some discussion: I have differentiated the two kinds
of RuleActionMulti. Perhaps nobody knew there were two kinds, because
I don't think the second form appears in the regression tests. This
one uses square brackets instead of parentheses, but originally was
otherwise the same as the one in parentheses. In this version of
gram.y, the square bracket form treats SELECT statements the same
as the other allowed statements. As discussed before on this list,
psql cannot make sense out of the results of such a thing, but an
application might. And I have designs on just such an application.
++ kevin o'gorman
Peter Eisentraut [Sat, 28 Oct 2000 15:10:36 +0000 (15:10 +0000)]
Remove compiler warnings (add missing include files). Only link against
-lm if it's actually there.
Peter Eisentraut [Sat, 28 Oct 2000 01:07:00 +0000 (01:07 +0000)]
Add --version and --help options to "postgres".
Peter Eisentraut [Fri, 27 Oct 2000 23:59:39 +0000 (23:59 +0000)]
Make use of system-specific linker option to embed shared library search
path into executables and shared libraries (-rpath or -R for most). Can be
disabled with --disable-rpath, since some binary packaging standards do not
like this option.
Bruce Momjian [Fri, 27 Oct 2000 22:28:23 +0000 (22:28 +0000)]
Fix java driver example.
Peter Eisentraut [Fri, 27 Oct 2000 20:09:48 +0000 (20:09 +0000)]
Use compiler driver, not linker, to link shared libraries on Unixware.
Peter Eisentraut [Fri, 27 Oct 2000 20:00:22 +0000 (20:00 +0000)]
Make regression tests work with VPATH builds.
Tatsuo Ishii [Fri, 27 Oct 2000 02:25:34 +0000 (02:25 +0000)]
Fix for drop db message format changes
Tatsuo Ishii [Fri, 27 Oct 2000 02:23:51 +0000 (02:23 +0000)]
Remove gcc-only macro definition
Tom Lane [Fri, 27 Oct 2000 01:55:23 +0000 (01:55 +0000)]
Disallow bits beyond the mask length for CIDR values, per discussion
on pghackers. Arrange for the sort ordering of general INET values
to be network part as major sort key, host part as minor sort key.
I did not force an initdb for this change, but anyone who's running
indexes on general INET values may need to recreate those indexes.
Tom Lane [Thu, 26 Oct 2000 21:38:24 +0000 (21:38 +0000)]
Re-implement LIMIT/OFFSET as a plan node type, instead of a hack in
ExecutorRun. This allows LIMIT to work in a view. Also, LIMIT in a
cursor declaration will behave in a reasonable fashion, whereas before
it was overridden by the FETCH count.
Bruce Momjian [Thu, 26 Oct 2000 19:55:10 +0000 (19:55 +0000)]
Update TODO list.
Tom Lane [Thu, 26 Oct 2000 17:31:35 +0000 (17:31 +0000)]
Fix breakage I introduced yesterday in MULTIBYTE compilations.
Sorry 'bout that, chief...
Tom Lane [Thu, 26 Oct 2000 17:04:12 +0000 (17:04 +0000)]
Clean up gcc warnings in MULTIBYTE mode.
Peter Eisentraut [Thu, 26 Oct 2000 16:28:01 +0000 (16:28 +0000)]
In flex --version test, redirect stdin to /dev/null, because some lex' hang
waiting for input. From Pete Forman <gsez020@kryten.bedford.waii.com>.
Bruce Momjian [Thu, 26 Oct 2000 11:41:55 +0000 (11:41 +0000)]
Update TODO list.
Tom Lane [Wed, 25 Oct 2000 22:27:25 +0000 (22:27 +0000)]
Clean up broken test for whether to wait for input in SSL case.
Per discussion with Magnus Hagander.
Bruce Momjian [Wed, 25 Oct 2000 21:55:13 +0000 (21:55 +0000)]
autoconf
Tom Lane [Wed, 25 Oct 2000 21:48:12 +0000 (21:48 +0000)]
Ensure clause_selectivity() behaves sanely when examining an uplevel Var
or a Var that references a subquery output.
Tom Lane [Wed, 25 Oct 2000 20:36:52 +0000 (20:36 +0000)]
Teach psql about new relkind for views.
Tom Lane [Wed, 25 Oct 2000 19:44:44 +0000 (19:44 +0000)]
Support SET/SHOW/RESET client_encoding and server_encoding even when
MULTIBYTE support is not compiled (you just can't set them to anything
but SQL_ASCII). This should reduce interoperability problems between
MB-enabled clients and non-MB-enabled servers.
Tom Lane [Wed, 25 Oct 2000 19:36:03 +0000 (19:36 +0000)]
Minor cleanup.
Michael Meskes [Wed, 25 Oct 2000 19:28:09 +0000 (19:28 +0000)]
Synced preproc.y with gram.y.
Tom Lane [Wed, 25 Oct 2000 18:56:16 +0000 (18:56 +0000)]
Accept CREATE DATABASE WITH ENCODING 'SQL_ASCII' even when MULTIBYTE
support is not present. This allows a non-MB server to load a pg_dumpall
script produced by an MB-enabled server, so long as only ASCII encoding
was used.
Peter Eisentraut [Wed, 25 Oct 2000 16:13:52 +0000 (16:13 +0000)]
Rearrange handling of -L linker options so that they are always before all
the -l options. (This was not the case when using the OpenSSL or Kerberos
options.) Also make sure that shared library links get to see all the -L
options. Get Kerberos 5 support to compile on Redhat 7.0. Add OpenSSL and
-lsocket (if used/found) to libpq link.
Thomas G. Lockhart [Wed, 25 Oct 2000 14:15:49 +0000 (14:15 +0000)]
From Zoltan Kovacs back in April (sorry for the delay Zoltan!):
I modified the current ODBC driver for
* referential integrity error reporting,
* SELECT in transactions and
* disabling autocommit.
I tested these changes with Borland C++ Builder -> ODBCExpress ->
WinODBC driver (DLL) -> Postgres 7.0beta1 and Borland C++ Builder -> BDE ->
WinODBC driver (DLL) -> Postgres 7.0beta1. The patch is based on snapshot of
22th April (I don't think that someone has modified it since that: Byron
hasn't gave any sign of living for about a month and I didn't find any
comments about the ODBC driver on the list).
Philip Warner [Wed, 25 Oct 2000 10:21:38 +0000 (10:21 +0000)]
Final (?) fix for tar (null block at end)
Dump template db in dumpall
Michael Meskes [Wed, 25 Oct 2000 07:00:33 +0000 (07:00 +0000)]
Added some more C constructs to the parser.
Vadim B. Mikheev [Wed, 25 Oct 2000 00:49:14 +0000 (00:49 +0000)]
WAL utils defs
Tom Lane [Tue, 24 Oct 2000 21:33:52 +0000 (21:33 +0000)]
Check for SIGHUP and process config file updates just after waiting
for input, not just before.
Tom Lane [Tue, 24 Oct 2000 20:59:35 +0000 (20:59 +0000)]
Do not execute fastpath function calls if in transaction ABORT state.
Just like queries, doing nothing is better than possibly getting weird
error messages. Also, improve comments.
Peter Eisentraut [Tue, 24 Oct 2000 20:16:48 +0000 (20:16 +0000)]
Integer binary operators, from Marko Kreen <marko@l-t.ee>. Renamed bitxor
operator to '#' for consistency. Parser still needs work.
Tom Lane [Tue, 24 Oct 2000 20:06:39 +0000 (20:06 +0000)]
Fix AbortOutOfAnyTransaction logic to avoid notice about
'AbortTransaction and not in in-progress state' when client disconnects
just after an error. Notice seems pretty harmless, so I'm not going
to worry about back-patching this into 7.0.* ...
Tom Lane [Tue, 24 Oct 2000 19:31:13 +0000 (19:31 +0000)]
Wups, messed up the comment markers on that last change.
Peter Eisentraut [Tue, 24 Oct 2000 19:11:15 +0000 (19:11 +0000)]
Ignore missing postmaster.opts.default file.
Bruce Momjian [Tue, 24 Oct 2000 19:09:20 +0000 (19:09 +0000)]
Update TODO list.
Peter Eisentraut [Tue, 24 Oct 2000 18:11:48 +0000 (18:11 +0000)]
New config.guess and config.sub with Darwin support (from official GNU
source). Adjust resultmap accordingly and fix some other regexps.
Tom Lane [Tue, 24 Oct 2000 18:05:14 +0000 (18:05 +0000)]
Create empty file so that CVS sources compile (Vadim can fill in real
definition later...)
Tom Lane [Tue, 24 Oct 2000 17:47:32 +0000 (17:47 +0000)]
Update plperl README per suggestions from Edward Bridges.
Peter Eisentraut [Tue, 24 Oct 2000 17:41:50 +0000 (17:41 +0000)]
Don't call AC_SUBST (in libtool.m4) before AC_INIT. The m4 diversions get
messed up and we end up with the comments from included files in the output
"configure".
Tom Lane [Tue, 24 Oct 2000 17:03:46 +0000 (17:03 +0000)]
Enable plperl to be built when --with-perl is selected. Dunno whether
latest fixes make it safe or not, but we won't find out if no one builds
it, eh?
Tom Lane [Tue, 24 Oct 2000 17:01:06 +0000 (17:01 +0000)]
Eliminate POLLUTE=1 hack for cross-Perl-version compatibility by using
Devel::PPPort instead. Thanks to Gilles Darold for doing the legwork.
Tom Lane [Tue, 24 Oct 2000 14:55:28 +0000 (14:55 +0000)]
Make test for <netinet/tcp.h> IRIX-proof.
Philip Warner [Tue, 24 Oct 2000 13:24:30 +0000 (13:24 +0000)]
Various fixes to TAR header format
Fix for endian bug in TAR output
Nicer error messages in pg_dump
Vadim B. Mikheev [Tue, 24 Oct 2000 09:56:23 +0000 (09:56 +0000)]
WAL misc
Tom Lane [Tue, 24 Oct 2000 04:13:28 +0000 (04:13 +0000)]
Rejigger do_lo_list's query so that obj_description() is evaluated only
once per distinct LO, not once per pg_largeobject tuple.
Tom Lane [Tue, 24 Oct 2000 03:34:53 +0000 (03:34 +0000)]
Reconsider page size for large objects: rather than stuffing disk pages
as full as possible, seems better to use a tuple size around BLCKSZ/4
so that less space is wasted when a LO tuple is updated. Also, this
lets us use a logical page size that's an exact power of two, avoiding
partial-page writes when client is sending us stuff in power-of-2
buffer chunks.
Tom Lane [Tue, 24 Oct 2000 03:15:14 +0000 (03:15 +0000)]
Increase buffer size to improve performance of client-side lo_import.
Tom Lane [Tue, 24 Oct 2000 03:14:08 +0000 (03:14 +0000)]
Remove arbitrary limit on number of simultaneously open large objects.
This used to make some sense under the old implementation, but now an
open LO is pretty darn cheap, so why restrict it?
Bruce Momjian [Tue, 24 Oct 2000 01:59:22 +0000 (01:59 +0000)]
Update TODO list.
Tom Lane [Tue, 24 Oct 2000 01:38:44 +0000 (01:38 +0000)]
Major overhaul of large-object implementation, by Denis Perchine with
kibitzing from Tom Lane. Large objects are now all stored in a single
system relation "pg_largeobject" --- no more xinv or xinx files, no more
relkind 'l'. This should offer substantial performance improvement for
large numbers of LOs, since there won't be directory bloat anymore.
It'll also fix problems like running out of locktable space when you
access thousands of LOs in one transaction.
Also clean up cruft in read/write routines. LOs with "holes" in them
(never-written byte ranges) now work just like Unix files with holes do:
a hole reads as zeroes but doesn't occupy storage space.
INITDB forced!
Tom Lane [Tue, 24 Oct 2000 00:08:02 +0000 (00:08 +0000)]
Add some modicum of error detection...