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...
Tom Lane [Tue, 24 Oct 2000 00:04:11 +0000 (00:04 +0000)]
Remove testlo2.c --- there seems to be no difference between this and
testlo.c, except it's even skimpier on error checking :-(
Tom Lane [Mon, 23 Oct 2000 23:42:04 +0000 (23:42 +0000)]
If a field is incompressible ('compressed' data is actually larger than
source, due to addition of header overhead), store it as plain data
rather than pseudo-compressed data. This saves a few microseconds when
reading it out, but much more importantly guarantees that the toaster
won't actually expand tuples that contain incompressible data. That's
essential to avoid 'Tuple too big' failures with large objects.
Bruce Momjian [Mon, 23 Oct 2000 22:15:36 +0000 (22:15 +0000)]
Update TODO list.
Peter Eisentraut [Mon, 23 Oct 2000 21:44:12 +0000 (21:44 +0000)]
Polish shared library build to reduce number of special hacks. In
particular, allow linking with arbitrary commands rather than only $(AR) or
$(LD), and treat C++ without hacks.
Add option to disable shared libraries. This takes the place of the
BSD_SHLIB variable. The regression test driver ignores the plpgsql test
if there are no shared libraries available.
Bruce Momjian [Mon, 23 Oct 2000 16:47:48 +0000 (16:47 +0000)]
autoconf
Bruce Momjian [Mon, 23 Oct 2000 14:50:44 +0000 (14:50 +0000)]
Back out xti.h portion of the patch.
Vadim B. Mikheev [Mon, 23 Oct 2000 04:10:24 +0000 (04:10 +0000)]
New relcache hash table with RelFileNode as key to be used
from bufmgr - it would be nice to have separate hash in smgr
for node <--> fd mappings, but for the moment it's easy to
add new hash to relcache.
Fixed small bug in xlog.c:ReadRecord.
Tom Lane [Mon, 23 Oct 2000 00:46:07 +0000 (00:46 +0000)]
Minor updates/corrections for CREATE/DROP FUNCTION/AGGREGATE/OPERATOR.
Tom Lane [Sun, 22 Oct 2000 23:32:48 +0000 (23:32 +0000)]
Some small polishing of Mark Hollomon's cleanup of DROP command: might
as well allow DROP multiple INDEX, RULE, TYPE as well. Add missing
CommandCounterIncrement to DROP loop, which could cause trouble otherwise
with multiple DROP of items affecting same catalog entries. Try to
bring a little consistency to various error messages using 'does not exist',
'nonexistent', etc --- I standardized on 'does not exist' since that's
what the vast majority of the existing uses seem to be.
Tom Lane [Sun, 22 Oct 2000 23:25:11 +0000 (23:25 +0000)]
plpgsql regress tests seem a tad out of date ... repair bit rot.
Philip Warner [Sun, 22 Oct 2000 23:16:55 +0000 (23:16 +0000)]
Cleanup error messages in findLastBuiltinOid
Peter Eisentraut [Sun, 22 Oct 2000 22:15:13 +0000 (22:15 +0000)]
Makeover for Unixware 7.1.1
* Makefile: Add more standard targets. Improve shell redirection in GNU
make detection.
* src/backend/access/transam/rmgr.c: Fix incorrect(?) C.
* src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug.
* src/include/port/unixware.h: ...with help from here.
* src/backend/nodes/print.c (plannode_type): Remove some "break"s after
"return"s.
* src/backend/tcop/dest.c (DestToFunction): ditto.
* src/backend/nodes/readfuncs.c: Add proper prototypes.
* src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol()
setting EINVAL. This saves us from creating an extra set of regression test
output for the affected systems.
* src/include/storage/s_lock.h (tas): Correct prototype.
* src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable
as dimension in array definition.
* src/makefiles/Makefile.unixware: Add support for GCC.
* src/template/unixware: same here
* src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace.
* src/test/regress/expected/horology-solaris-1947.out: Part of this file
was evidently missing.
* src/test/regress/pg_regress.sh: Fix shell. mkdir -p returns non-zero if
the directory exists.
* src/test/regress/resultmap: Add entries for Unixware.
Tom Lane [Sun, 22 Oct 2000 20:20:49 +0000 (20:20 +0000)]
Fix incorrect logic for clearing BufferDirtiedByMe in ReleaseRelationBuffers
and DropBuffers. Formerly we cleared the flag for each buffer currently
belonging to the target rel or database, but that's completely wrong!
Must look at BufferTagLastDirtied to see whether the BufferDirtiedByMe
flag is relevant to target rel or not; this is *independent* of the
current contents of the buffer. Vadim spotted this problem, but his
fix was only partially correct...
Tom Lane [Sun, 22 Oct 2000 19:49:43 +0000 (19:49 +0000)]
Patch VACUUM problem with moving chain of update tuples when source
and destination of a tuple lie on the same page.
(Previously fixed in REL7_0 branch, now apply to current.)
Tom Lane [Sun, 22 Oct 2000 19:11:05 +0000 (19:11 +0000)]
Fix typo.
Tom Lane [Sun, 22 Oct 2000 18:29:58 +0000 (18:29 +0000)]
datlastsysoid is an Oid, not an int4 ...
Philip Warner [Sun, 22 Oct 2000 18:13:09 +0000 (18:13 +0000)]
Use new datlastsysoid field in pg_database + some cleanups & fixes
Philip Warner [Sun, 22 Oct 2000 17:55:49 +0000 (17:55 +0000)]
Add new datlastsysoid to pg_database.
This field stores the last allocated OID after the database was created.
Used by pg_dump in deciding what is user-defined vs. system-defined.
Michael Meskes [Sun, 22 Oct 2000 13:36:19 +0000 (13:36 +0000)]
Fixed mixing of two enum datatypes.
Bruce Momjian [Sun, 22 Oct 2000 05:27:23 +0000 (05:27 +0000)]
BACKED OUT.
> Regression tests opr_sanity and sanity_check are now failing.
Um, Bruce, I've said several times that I didn't think Perchine's large
object changes should be applied until someone had actually reviewed
them.
Bruce Momjian [Sun, 22 Oct 2000 05:14:01 +0000 (05:14 +0000)]
Crash on NULL again in system table check.
Peter Eisentraut [Sat, 21 Oct 2000 22:36:14 +0000 (22:36 +0000)]
Move DLSUFFIX, AROPT, and CFLAGS_SL settings from template to
Makefile.port, since they are of no use to configure and much of the
library magic happens in Makefile.port anyway.
Use __alpha, not __alpha__, since the former is universally available.
Remove -DNOFIXADE from the compile command line and put it in the port
include file.
Bruce Momjian [Sat, 21 Oct 2000 18:41:51 +0000 (18:41 +0000)]
First a core dump which can be relieved by:
Patrick Welche
Peter Eisentraut [Sat, 21 Oct 2000 17:09:18 +0000 (17:09 +0000)]
This file isn't used anywhere.
Bruce Momjian [Sat, 21 Oct 2000 17:07:31 +0000 (17:07 +0000)]
Remove CC and CXX.
Bruce Momjian [Sat, 21 Oct 2000 15:55:29 +0000 (15:55 +0000)]
here it is as requested by Bruce.
I tested it restoring my database with > 100000 BLOBS, and dumping it out.
But unfortunatly I can not restore it back due to problems in pg_dump.
--
Sincerely Yours,
Denis Perchine
Bruce Momjian [Sat, 21 Oct 2000 15:50:32 +0000 (15:50 +0000)]
Per my ongoing discussion with PeterE, here is the patch I applied to
src/template/unixware:
Larry Rosenman
Vadim B. Mikheev [Sat, 21 Oct 2000 15:43:36 +0000 (15:43 +0000)]
WAL
Peter Eisentraut [Sat, 21 Oct 2000 01:08:34 +0000 (01:08 +0000)]
Remove portions of SSL documentation patch that were installed twice.
Peter Eisentraut [Fri, 20 Oct 2000 23:57:34 +0000 (23:57 +0000)]
Add check for GNU or not GNU ld, needed to pick the right export_dynamic
flags for Solaris. The test itself is straight from libtool.
Peter Eisentraut [Fri, 20 Oct 2000 21:04:27 +0000 (21:04 +0000)]
Add support for VPATH builds, that is, building somewhere else than in the
source directory. This involves mostly makefiles using $(srcdir) when they
might have used ".". (Regression tests don't work with this, yet.)
Sort out usage of CPPFLAGS, CFLAGS (and CXXFLAGS). Add "override" keyword
in most places, to preserve necessary flags even when the user overrode the
flags.
Thomas G. Lockhart [Fri, 20 Oct 2000 14:02:12 +0000 (14:02 +0000)]
Fix discrepency in field names.
Thanks to Henry "He Weiping (Laser Henry)"
for catching this.
Thomas G. Lockhart [Fri, 20 Oct 2000 14:00:49 +0000 (14:00 +0000)]
Fix ids and xrefs to avoid duplicates.
Remove copy/paste redundant extra section with slight merge of content.
Thomas G. Lockhart [Fri, 20 Oct 2000 13:57:10 +0000 (13:57 +0000)]
Remove ZP4, ZP5, ZP6 from docs since the current parser won't accept
time zones with embedded numerals (parsing to a meaninless "ZP 4"
instead).
Support "SAT" as an Australian time zone if USE_AUSTRALIAN_RULES
is defined.
Fix units in exposition on Julian calendar (from Lazer Henry I think...)
Thomas G. Lockhart [Fri, 20 Oct 2000 13:44:39 +0000 (13:44 +0000)]
Fix up id tag parameters to omit illegal underscores.
Remove lots of extraneous trailing ^Ms from pg_restore.sgml.
Vadim B. Mikheev [Fri, 20 Oct 2000 11:28:39 +0000 (11:28 +0000)]
WAL need in overwrite mode - restored in new way
(without PageManagetSetMode -:))
Safe shuffle mode behaviour retained.
Vadim B. Mikheev [Fri, 20 Oct 2000 11:01:21 +0000 (11:01 +0000)]
redo/undo support functions and cleanups.
Tom Lane [Fri, 20 Oct 2000 03:45:35 +0000 (03:45 +0000)]
Remove 'override' keyword, which breaks the build on HPUX, and probably
anywhere else that Makefile.shlib needs to modify CFLAGS to produce
valid code for a shared library. I'm not real clear on *why* the use
of override causes make to ignore the later attempt to assign
CFLAGS +=
but it indubitably does --- at least on gmake 3.79.1. gmake bug?
Tom Lane [Fri, 20 Oct 2000 02:53:10 +0000 (02:53 +0000)]
Clean up gcc warnings.
Tom Lane [Thu, 19 Oct 2000 23:06:24 +0000 (23:06 +0000)]
Improve comments.
Tom Lane [Thu, 19 Oct 2000 04:53:41 +0000 (04:53 +0000)]
Fix silly typo in redirection example.
Tom Lane [Thu, 19 Oct 2000 03:55:51 +0000 (03:55 +0000)]
Fix missing CommandCounterIncrement in DROP USER.
Bruce Momjian [Thu, 19 Oct 2000 03:18:56 +0000 (03:18 +0000)]
Solaris looks like it is OK now, FAQ item removed.
Bruce Momjian [Wed, 18 Oct 2000 21:18:24 +0000 (21:18 +0000)]
Update solaris FAQ for pl/pgsql Michel Decima
Bruce Momjian [Wed, 18 Oct 2000 21:14:56 +0000 (21:14 +0000)]
Make it an FAQ.
Bruce Momjian [Wed, 18 Oct 2000 16:16:18 +0000 (16:16 +0000)]
The following patch was sent to the patches list:
This patch forces the use of 'DROP VIEW' to destroy views.
It also changes the syntax of DROP VIEW to
DROP VIEW v1, v2, ...
to match the syntax of DROP TABLE.
Some error messages were changed so this patch also includes changes to the
appropriate expected/*.out files.
Doc changes for 'DROP TABLE" and 'DROP VIEW' are included.
--
Mark Hollomon
Philip Warner [Wed, 18 Oct 2000 13:29:23 +0000 (13:29 +0000)]
Added pg_restore (probably rename later)
Vadim B. Mikheev [Wed, 18 Oct 2000 05:50:16 +0000 (05:50 +0000)]
I had to change buffer tag: now RelFileNode is used instead of
LockRelId - ie physical information, not logical. It's required
for WAL. Regression tests passed.
Tom Lane [Tue, 17 Oct 2000 21:23:09 +0000 (21:23 +0000)]
Update pltcl regress test to exercise return_null; also make use of
the fact that CREATE FUNCTION and CREATE AGGREGATE now allow array
types to be named like int4[] rather than _int4.
Peter Eisentraut [Tue, 17 Oct 2000 17:43:13 +0000 (17:43 +0000)]
Locate the file pg_service.conf in the directory configured as --syconfdir
(i.e., /usr/local/pgsql/etc by default).
Michael Meskes [Tue, 17 Oct 2000 15:38:26 +0000 (15:38 +0000)]
Fixed some bugs in C language parsing.
Peter Eisentraut [Tue, 17 Oct 2000 15:26:40 +0000 (15:26 +0000)]
* doc/src/sgml/regress.sgml: Update for new driver script.
* doc/src/sgml/installation.sgml: ditto.
* src/test/regress/README: Regenerate.
* doc/src/sgml/docguide.sgml: Explain how it was done. Explain how
INSTALL and HISTORY are (now) generated.
* doc/src/sgml/Makefile: Implement HISTORY generation to be analoguous
to INSTALL.
Peter Mount [Tue, 17 Oct 2000 14:52:01 +0000 (14:52 +0000)]
Some more getTimestamp() fixes
Bruce Momjian [Tue, 17 Oct 2000 14:27:50 +0000 (14:27 +0000)]
Remove duplicate requiressl entry.
Vince Vielhaber [Tue, 17 Oct 2000 10:33:21 +0000 (10:33 +0000)]
update website references
Michael Meskes [Tue, 17 Oct 2000 06:15:29 +0000 (06:15 +0000)]
Simplified parsing of connect rule.
Bruce Momjian [Tue, 17 Oct 2000 04:21:30 +0000 (04:21 +0000)]
Update FAQ.
Bruce Momjian [Tue, 17 Oct 2000 04:08:33 +0000 (04:08 +0000)]
Update TODO list.
Bruce Momjian [Tue, 17 Oct 2000 03:29:30 +0000 (03:29 +0000)]
FAQ_MSWIN is better than INSTALL_MSWIN
Bruce Momjian [Tue, 17 Oct 2000 03:26:36 +0000 (03:26 +0000)]
Rename INSTALL_WIN to INSTALL_MSWIN. MS doesn't own the Windows name!
Bruce Momjian [Tue, 17 Oct 2000 01:00:58 +0000 (01:00 +0000)]
TNS:
I prepared and tested a patch vs. 7.0.2, and it works fine. I've added
another option which allows users to have their own service file in
~/.pg_service.conf, which might come handy sometimes.
Mario Weilguni
Bruce Momjian [Mon, 16 Oct 2000 22:37:37 +0000 (22:37 +0000)]
I wasn't too sure where to mail this.
I have noticed that there are some identical files in
postgresql-7.0.2/src/test/regress/expected/
> diff float8-cygwin.out float8-small-is-zero.out #I recommend deleting
float8-cygwin.out
> diff geometry-cygwin-precision.out geometry-solaris-precision.out #I
recommend deleting geometry-cygwin-precision.out
below is the diff of postgresql-7.0.2/src/test/regress/resultmap
that has the above files deleted plus the addition of an alpha regression
test built with alphaev56-dec-osf4.0e/2.95.2/ . The alpha geometry
regression file is attached
11c11
< float8/i.86-pc-cygwin*=float8-cygwin
---
> float8/i.86-pc-cygwin*=float8-small-is-zero
18c18
< geometry/i.86-pc-cygwin*=geometry-cygwin-precision
---
> geometry/i.86-pc-cygwin*=geometry-solaris-precision
21a22
> geometry/alpha.*-dec-osf=geometry-alpha-precision
Ricardo Muggli
Systems Manager
Information and Technology Services
Minnesota State University, Mankato
Bruce Momjian [Mon, 16 Oct 2000 22:03:58 +0000 (22:03 +0000)]
Update TODO list.
Bruce Momjian [Mon, 16 Oct 2000 21:14:35 +0000 (21:14 +0000)]
Update TODO list.
Bruce Momjian [Mon, 16 Oct 2000 20:05:58 +0000 (20:05 +0000)]
Update TODO list.
Michael Meskes [Mon, 16 Oct 2000 19:53:04 +0000 (19:53 +0000)]
Fixed handling of variables in connect rule.
Bruce Momjian [Mon, 16 Oct 2000 19:49:28 +0000 (19:49 +0000)]
Update TODO list.
Bruce Momjian [Mon, 16 Oct 2000 17:18:35 +0000 (17:18 +0000)]
Update TODO list.
Bruce Momjian [Mon, 16 Oct 2000 17:08:11 +0000 (17:08 +0000)]
Remove NO_SECURITY define.
Bruce Momjian [Mon, 16 Oct 2000 16:19:14 +0000 (16:19 +0000)]
Fix typo in code.
Bruce Momjian [Mon, 16 Oct 2000 16:13:02 +0000 (16:13 +0000)]
Update TODO list.
Bruce Momjian [Mon, 16 Oct 2000 15:54:12 +0000 (15:54 +0000)]
Update TODO list.
Bruce Momjian [Mon, 16 Oct 2000 15:00:15 +0000 (15:00 +0000)]
Something changed, that now shows that there is a dependency missing in
Makefile .aix
Please apply to current, to fix shared lib build from single .o files.
Thanks
Andreas
Vadim B. Mikheev [Mon, 16 Oct 2000 14:52:28 +0000 (14:52 +0000)]
New file naming. Database OID is used as "tablespace" id and
relation OID is used as file node on creation but may be changed later
if required. Regression Tests Approved (c) -:)))
Bruce Momjian [Mon, 16 Oct 2000 14:34:08 +0000 (14:34 +0000)]
I submitted three patches to
[email protected] on Oct 13.
Only two have shown up on the web site. Even the mbox is missing the
second.
The missing patch is a one-liner, so here it is. I can resend the
whole bug report if wanted.
Pete Forman
Philip Warner [Mon, 16 Oct 2000 03:34:47 +0000 (03:34 +0000)]
Added pg_restore to allfiles.sgml
Bruce Momjian [Mon, 16 Oct 2000 03:25:17 +0000 (03:25 +0000)]
Here is a patch against the same cvs tree as the SSL patch (Aug 20).
I hope I didn't mess the SGML up too bad, but somebody should definitly
look that over. I tried to steal as much as I could from around :-)
This patch updates:
* Installation instructions (paragraph on how to compile with openssl)
* Documentation of pg_hba.conf (added "hostssl" record docs)
* Libpq documentation (added connection option, documentation of
PQgetssl() function)
* Add section on SSL to "Server Runtime Environment"
If you beleive any particular area needs more attention, please let me know.
//Magnus
Marc G. Fournier [Mon, 16 Oct 2000 02:41:52 +0000 (02:41 +0000)]
author setting
Marc G. Fournier [Mon, 16 Oct 2000 02:41:23 +0000 (02:41 +0000)]
again
Marc G. Fournier [Mon, 16 Oct 2000 02:40:58 +0000 (02:40 +0000)]
again ...
Marc G. Fournier [Mon, 16 Oct 2000 02:40:13 +0000 (02:40 +0000)]
test again
Marc G. Fournier [Mon, 16 Oct 2000 02:30:37 +0000 (02:30 +0000)]
let's see if this gets the 'committer' into the email now ...
Bruce Momjian [Mon, 16 Oct 2000 02:20:58 +0000 (02:20 +0000)]
Change jdbc docs from postgresql.Driver to org.postgresql.Driver.
Marc G. Fournier [Mon, 16 Oct 2000 02:08:22 +0000 (02:08 +0000)]
testing ...
Bruce Momjian [Sun, 15 Oct 2000 21:52:48 +0000 (21:52 +0000)]
Update TODO list.
Bruce Momjian [Sun, 15 Oct 2000 21:50:49 +0000 (21:50 +0000)]
Update TODO list.
Bruce Momjian [Sun, 15 Oct 2000 21:45:30 +0000 (21:45 +0000)]
Update TODO list.
Bruce Momjian [Sun, 15 Oct 2000 18:53:25 +0000 (18:53 +0000)]
Update TODO list.
Philip Warner [Sun, 15 Oct 2000 00:34:54 +0000 (00:34 +0000)]
Fix prototype declaration based on patch from David Reid
Bruce Momjian [Sat, 14 Oct 2000 23:59:12 +0000 (23:59 +0000)]
autoconf
Bruce Momjian [Sat, 14 Oct 2000 23:57:46 +0000 (23:57 +0000)]
This fixes a small problem with identifying -lbind as required for
BeOS.
David Reid
Bruce Momjian [Sat, 14 Oct 2000 23:56:59 +0000 (23:56 +0000)]
The configure script fails to find .
As a result, backend/libpq/pqcomm.c and interfaces/libpq/fe-connect.c
fail to compile.
The header needs to be preceded by , at
least on IRIX, Solaris and AIX. The simple configure test fails.
(That header on Linux is idempotent.)
The basic problem is that is a BSD header. The
correct header for TCP internals such as TCP_NODELAY on a UNIX system
is . By UNIX I mean UNIX95 (aka XPG4v2 or SUSv1) or later.
The current UNIX standard (UNIX98 aka SUSv2) is available online at
7908799/>.
The fix is to add header support for into configure.in and
config.h.in.
The 2 files which conditionally include need also to
conditionally include .
Pete Forman