OSDN Git Service
Bruce Momjian [Fri, 10 Nov 2000 22:29:21 +0000 (22:29 +0000)]
Update to PyGreSQL 3.1:
Fix some quoting functions. In particular handle NULLs better.
Use a method to add primary key information rather than direct
manipulation of the class structures.
Break decimal out in _quote (in pg.py) and treat it as float.
Treat timestamp like date for quoting purposes.
Remove a redundant SELECT from the get method speeding it, and
insert since it calls get, up a little.
Add test for BOOL type in typecast method to pgdbTypeCache class.
(tv@beamnet.de)
Fix pgdb.py to send port as integer to lower level function
(dildog@l0pht.com)
Change pg.py to speed up some operations
Allow updates on tables with no primary keys.
D'Arcy J.M. Cain
Bruce Momjian [Fri, 10 Nov 2000 22:06:26 +0000 (22:06 +0000)]
the bug was not fixed in the snapshot of November 5th. Also the enterprise
edition of the driver did not compile. I have fixed both issues again. I have
attached the modified files to this email, maybe you can check them into the
repository. (Fixes are marked with //FIXME). Enterprise edition driver now
compiles and seems to work.
Jan Thomae
Tom Lane [Fri, 10 Nov 2000 20:13:27 +0000 (20:13 +0000)]
Adjust INET/CIDR display conventions and reimplement some INET/CIDR
functions, per recent discussions on pghackers. For now, I have called
the verbose-display formatting function text(), but will reconsider if
enough people object.
initdb forced.
Bruce Momjian [Fri, 10 Nov 2000 19:42:35 +0000 (19:42 +0000)]
Update TODO list.
Bruce Momjian [Fri, 10 Nov 2000 19:41:26 +0000 (19:41 +0000)]
Add update of HISTORY file for 7.0.3.
Tom Lane [Fri, 10 Nov 2000 16:32:09 +0000 (16:32 +0000)]
Fix typos.
Hiroshi Inoue [Fri, 10 Nov 2000 09:38:21 +0000 (09:38 +0000)]
Use SearchSysCacheTupleCopy() instead of SearchSysCacheTuple() in
order to continue to access the tuple more than now.
This would resolve a segmentation fault error.
Vadim B. Mikheev [Fri, 10 Nov 2000 03:53:45 +0000 (03:53 +0000)]
pg_fsync is fsync in WAL version.
Tom Lane [Fri, 10 Nov 2000 00:33:12 +0000 (00:33 +0000)]
Clean up syscache so that recursive invocation is safe, and remove error
message about recursive use of a syscache. Also remove most of the
specialized indexscan routines in indexing.c --- it turns out that
catcache.c is perfectly able to perform the indexscan for itself,
in fact has already looked up all the information needed to do so!
This should be faster as well as needing far less boilerplate code.
Peter Eisentraut [Thu, 9 Nov 2000 19:00:50 +0000 (19:00 +0000)]
Real dynamic loader code
Peter Eisentraut [Thu, 9 Nov 2000 18:18:42 +0000 (18:18 +0000)]
Also test for 'void *' as third arg of accept() (as on Solaris 7 and 8),
but take it as 'int *' instead.
Add real test for whether ld -R works on Unixware.
Rename --enable-uniconv to --enable-unicode-conversion.
Install shlibs mode 755 by default, since 644 causes gratuitous complaints
from ldd et al. on some systems.
Tom Lane [Thu, 9 Nov 2000 18:12:53 +0000 (18:12 +0000)]
ExecEndAppend() neglected to close indices on appended result rels,
and improperly prevented the main result rel from being closed if it
wasn't one of the Append's own result rels. Per report from Hiroshi.
Michael Meskes [Thu, 9 Nov 2000 14:06:57 +0000 (14:06 +0000)]
Applied yet another patch by Christof. Thanks Cristof!
Synced parser.
Vadim B. Mikheev [Thu, 9 Nov 2000 11:26:00 +0000 (11:26 +0000)]
Auto checkpoint creation.
Bruce Momjian [Thu, 9 Nov 2000 04:17:53 +0000 (04:17 +0000)]
Please apply this patch to current, to fix a problem with runcheck,
that installs into a different path than is configured.
With this applied both postmaster and the shared libs are location
independent
for AIX 4.2 and up.
Thanks
Andreas
Tom Lane [Thu, 9 Nov 2000 04:14:32 +0000 (04:14 +0000)]
Arrange for CASE or UNION with only untyped literal constants as input
to resolve the unknown constants as type TEXT.
Tom Lane [Thu, 9 Nov 2000 02:47:49 +0000 (02:47 +0000)]
Add some more union/intersect/except test cases, per suggestions
from Kevin O'Gorman.
Tom Lane [Thu, 9 Nov 2000 02:46:17 +0000 (02:46 +0000)]
Repair some bugs in new union/intersect/except code.
Thanks to Kevin O'Gorman for finding these...
Tom Lane [Wed, 8 Nov 2000 23:24:24 +0000 (23:24 +0000)]
Clean up compiler warnings.
Tom Lane [Wed, 8 Nov 2000 22:10:03 +0000 (22:10 +0000)]
Make DROP TABLE rollback-able: postpone physical file delete until commit.
(WAL logging for this is not done yet, however.) Clean up a number of really
crufty things that are no longer needed now that DROP behaves nicely. Make
temp table mapper do the right things when drop or rename affecting a temp
table is rolled back. Also, remove "relation modified while in use" error
check, in favor of locking tables at first reference and holding that lock
throughout the statement.
Bruce Momjian [Wed, 8 Nov 2000 21:28:06 +0000 (21:28 +0000)]
Add ANALYSE spelling of ANALYZE for vacuum.
Peter Eisentraut [Wed, 8 Nov 2000 20:27:38 +0000 (20:27 +0000)]
Only use ld -R flag in UW 7.1*, since it's new.
Peter Eisentraut [Wed, 8 Nov 2000 20:18:49 +0000 (20:18 +0000)]
Fix 'soname's for various platforms, so that libpq.so.2.0 is considered
compatible with libpq.so.2.1, etc.
Bruce Momjian [Wed, 8 Nov 2000 20:04:23 +0000 (20:04 +0000)]
Update TODO list.
Peter Eisentraut [Wed, 8 Nov 2000 18:56:25 +0000 (18:56 +0000)]
Add dependencies required for parallel make
Peter Eisentraut [Wed, 8 Nov 2000 18:23:44 +0000 (18:23 +0000)]
Dump identity of alternative location, if any.
Peter Eisentraut [Wed, 8 Nov 2000 17:57:46 +0000 (17:57 +0000)]
Add '-c name=val' flag for setting run-time parameters.
Peter Eisentraut [Wed, 8 Nov 2000 16:59:50 +0000 (16:59 +0000)]
Reimplement alternative database locations with symlinks. No changes in
user interface.
Tom Lane [Wed, 8 Nov 2000 16:31:06 +0000 (16:31 +0000)]
CLUSTER did no permissions checking, forsooth ...
Thomas G. Lockhart [Tue, 7 Nov 2000 16:01:01 +0000 (16:01 +0000)]
Enable fallback to string type when argument(s) are of UNKNOWN type.
Same code exactly as for function resolution.
An obvious example is for
select '1' = '01';
which used to throw an error and which now resolves to two text strings.
Bruce Momjian [Tue, 7 Nov 2000 11:35:16 +0000 (11:35 +0000)]
This somehow gets moot. Is there a way to make gcc reject those comments?
Andreas
Michael Meskes [Tue, 7 Nov 2000 08:52:22 +0000 (08:52 +0000)]
Undo incorrectly committed Makefile.
Michael Meskes [Tue, 7 Nov 2000 08:46:27 +0000 (08:46 +0000)]
Third try. Sorry, I had a wrong path in my copy statement.
Michael Meskes [Tue, 7 Nov 2000 08:41:15 +0000 (08:41 +0000)]
Added more patches by Cristif Petig.
Tom Lane [Tue, 7 Nov 2000 06:51:21 +0000 (06:51 +0000)]
Update for new results.
Tom Lane [Tue, 7 Nov 2000 02:17:50 +0000 (02:17 +0000)]
DropErrorMsg() died with assert failure if try to drop a toast table...
mea culpa...
Peter Eisentraut [Mon, 6 Nov 2000 22:40:30 +0000 (22:40 +0000)]
Update geometry for FreeBSD 4.1 (same as 4.0)
Peter Eisentraut [Mon, 6 Nov 2000 22:18:10 +0000 (22:18 +0000)]
Add -V option to backend, to show version, since --version doesn't seem
to work everywhere. Also, on FreeBSD you need to set the optreset variable
to 1 before parsing the command line a second time with getopt().
Peter Eisentraut [Mon, 6 Nov 2000 18:18:22 +0000 (18:18 +0000)]
Fix GNU make detection.
(The test 'make --version' with FreeBSD make (and potentially others)
would just reinvoke make on the same Makefile, resulting in an infinite
loop.)
Tom Lane [Mon, 6 Nov 2000 18:11:46 +0000 (18:11 +0000)]
Add explicit ORDER BYs in a couple of cases --- seems to be necessary
to get platform-independent results.
Tom Lane [Mon, 6 Nov 2000 18:11:03 +0000 (18:11 +0000)]
I think Thomas missed an update here...
Bruce Momjian [Mon, 6 Nov 2000 18:06:58 +0000 (18:06 +0000)]
Back out aix makefile patch.
Bruce Momjian [Mon, 6 Nov 2000 17:07:43 +0000 (17:07 +0000)]
Makefile.ports (copied from makefiles/Makefile.aix) is included before
the default target in GNUmakefile is reached. This patch calls that
default target.
Pete Forman
Thomas G. Lockhart [Mon, 6 Nov 2000 16:05:25 +0000 (16:05 +0000)]
Add support for AT TIME ZONE syntax.
Thomas G. Lockhart [Mon, 6 Nov 2000 16:03:47 +0000 (16:03 +0000)]
Add tests for more INTERVAL syntax.
Add more tests for JOIN syntax.
All tests pass on my Linux box (except for the usual couple of lines
for geometry).
Thomas G. Lockhart [Mon, 6 Nov 2000 15:58:46 +0000 (15:58 +0000)]
Add functions to support AT TIME ZONE syntax.
Update catalog version to today.
Thomas G. Lockhart [Mon, 6 Nov 2000 15:57:00 +0000 (15:57 +0000)]
Fix INTERVAL output when year/month has different sign as day/hour etc.
Previously, all fields were unsigned, with only a trailing "ago" to
indicate negative intervals. Now, ISO format does not use "ago", and
and the traditional PostgreSQL format has the first numeric field unsigned
with "ago" supporting that field. So "1 month - 2 days ago" is two days
less than a month in the past.
Fix interval arithmetic across daylight savings time boundaries.
Previously, most math across boundaries introduced a one hour offset.
Allow some date/time functions to return NULL if called with NULL args.
Implement functions for AT TIME ZONE support.
Support "SAT" as an Australian time zone if USE_AUSTRALIAN_RULES
is defined.
Thomas G. Lockhart [Mon, 6 Nov 2000 15:47:17 +0000 (15:47 +0000)]
Implement AT TIME ZONE SQL9x syntax.
AT is now a keyword but is not a reserved word.
Thomas G. Lockhart [Mon, 6 Nov 2000 15:42:30 +0000 (15:42 +0000)]
Allow type resolution for UNKNOWN arguments to functions to fall back to
any available string type. Previously, all candidate choices must have
fallen within the same "type category" for PostgreSQL to be willing to
choose any of them.
Need to apply the same fixup to operator type resolution.
Bruce Momjian [Mon, 6 Nov 2000 03:59:20 +0000 (03:59 +0000)]
Update TODO list.
Vadim B. Mikheev [Sun, 5 Nov 2000 22:50:21 +0000 (22:50 +0000)]
New CHECKPOINT command.
Auto removing of offline log files and creating new file
at checkpoint time.
Peter Eisentraut [Sun, 5 Nov 2000 21:04:07 +0000 (21:04 +0000)]
Add some configure checks for DocBook and related tools. With a somewhat
standard installation layout it should be possible to build the HTML
and print documentation without additional manual setup.
Peter Eisentraut [Sun, 5 Nov 2000 20:52:59 +0000 (20:52 +0000)]
Update for recent developments (C++, shlib), minor fixes
Tom Lane [Sun, 5 Nov 2000 01:42:07 +0000 (01:42 +0000)]
UNION select in a CREATE RULE caused a weird error, because transformRuleStmt
got confused by 'dummy' targetlist built for the UNION's toplevel query.
Fix by making dummy targetlist a little less cheesy.
Bruce Momjian [Sun, 5 Nov 2000 00:22:02 +0000 (00:22 +0000)]
Update TODO list.
Tom Lane [Sun, 5 Nov 2000 00:15:54 +0000 (00:15 +0000)]
Allow ORDER BY, LIMIT in sub-selects. Fix most (not all) cases where
the grammar did not allow redundant parentheses around sub-selects.
Distinguish LIMIT ALL from LIMIT 0; make the latter behave as one would
expect.
Bruce Momjian [Sat, 4 Nov 2000 21:09:41 +0000 (21:09 +0000)]
Update for createlang options in docs.
Bruce Momjian [Sat, 4 Nov 2000 21:06:37 +0000 (21:06 +0000)]
more procedural doc cleanup
Bruce Momjian [Sat, 4 Nov 2000 21:04:56 +0000 (21:04 +0000)]
Make PROCEDURAL optional in CREATE/DROP LANGUAGE.
Bruce Momjian [Sat, 4 Nov 2000 18:29:09 +0000 (18:29 +0000)]
This patch should allow primary/foreign key
definitions using inherited columns in the
create table statement.
Stephan Szabo
Bruce Momjian [Sat, 4 Nov 2000 18:23:36 +0000 (18:23 +0000)]
Update FAQ_DEV.
Bruce Momjian [Sat, 4 Nov 2000 17:09:24 +0000 (17:09 +0000)]
Update FAQ_DEV.
Peter Eisentraut [Sat, 4 Nov 2000 16:39:02 +0000 (16:39 +0000)]
Remove .SECONDARY: target again, because GNU make 3.78.1 will get mighty
confused in src/interfaces/libpq for some reason. Seemingly, different
GNU make versions have several mutually conflicting problems with implicit
rule chains. Words are not sufficient...
Peter Eisentraut [Sat, 4 Nov 2000 16:35:55 +0000 (16:35 +0000)]
Separate CFLAGS_SL and CXXFLAGS_SL, to allow building with C and C++
compilers from different providers. (Especially important since the
C++ compiler that goes with your favourite C compiler might not work.)
Peter Eisentraut [Sat, 4 Nov 2000 14:34:54 +0000 (14:34 +0000)]
Put -Ae into CC not CFLAGS, since it's not optional.
Peter Eisentraut [Sat, 4 Nov 2000 14:29:26 +0000 (14:29 +0000)]
If CFLAGS was specified in the environment, use that, not what the template
says.
Peter Eisentraut [Sat, 4 Nov 2000 13:37:39 +0000 (13:37 +0000)]
This is no longer used since we have the 'resultmap'.
Peter Eisentraut [Sat, 4 Nov 2000 12:47:48 +0000 (12:47 +0000)]
Since the backend now handles relative PGDATA, initdb doesn't have to work
around anymore.
Peter Eisentraut [Sat, 4 Nov 2000 12:43:24 +0000 (12:43 +0000)]
Make the backend grok relative paths for the data directory by converting
it to an absolute path.
Bruce Momjian [Sat, 4 Nov 2000 02:45:15 +0000 (02:45 +0000)]
autoconf
Tatsuo Ishii [Sat, 4 Nov 2000 02:27:56 +0000 (02:27 +0000)]
Fix for missing EUC_TW encoding
Peter Eisentraut [Fri, 3 Nov 2000 20:38:42 +0000 (20:38 +0000)]
outdated and obsolete
Peter Eisentraut [Fri, 3 Nov 2000 20:27:40 +0000 (20:27 +0000)]
Add global .SECONDARY: target to not allow make to delete intermediate
target files in implicit rule chains. That might have been a cool idea
but it seems to be too buggy to work, as it caused spurious recompiles in
several places.
Tom Lane [Fri, 3 Nov 2000 19:02:18 +0000 (19:02 +0000)]
Minor code cleanups, make in_group() check faster.
Tom Lane [Fri, 3 Nov 2000 19:01:36 +0000 (19:01 +0000)]
Fix bug reported by bobson: aclinsert3 would delete the 'world' entry
from an ACL list if it had no permissions remaining, which confused
aclcheck terribly. Also clean up code a little.
Peter Eisentraut [Fri, 3 Nov 2000 18:43:52 +0000 (18:43 +0000)]
Add configure check to see whether <string.h> and <strings.h> may both be
included, and then include <strings.h> if so. Several systems already
needed <strings.h> anyway. Some new systems that claim to conform to the
Unix 9x "standard" do not declare str[n]casemp() in string.h, and C99
compilers will not like that.
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.