OSDN Git Service
Bruce Momjian [Wed, 26 Jun 2002 21:58:56 +0000 (21:58 +0000)]
The attached patch fixes some spelling mistakes, makes the
comments on one of the optimizer functions a lot more
clear, adds a summary of the recent KSQO discussion to the
comments in the code, adds regression tests for the bug with
sequence state Tom fixed recently and another reg. test, and
removes some PostQuel legacy stuff: ExecAppend -> ExecInsert,
ExecRetrieve -> ExecSelect, etc.
Error messages remain unchanged until a vote.
Neil Conway
Tom Lane [Wed, 26 Jun 2002 14:52:08 +0000 (14:52 +0000)]
Treat \r as white space when parsing pg_hba and related files.
Should make life easier for DBAs who insist on editing files with
Windoze tools.
Barry Lind [Wed, 26 Jun 2002 03:21:27 +0000 (03:21 +0000)]
translation patch submitted by Zhenbang Wei forth@mail.net.tw
Barry Lind [Wed, 26 Jun 2002 03:16:57 +0000 (03:16 +0000)]
patch submitted by Jason Davies jason@netspade.com to provide proper java class name for a byte[]
Bruce Momjian [Tue, 25 Jun 2002 17:58:10 +0000 (17:58 +0000)]
Back out cleanup patch. Got old version and needs work.
Neil Conway
Bruce Momjian [Tue, 25 Jun 2002 17:27:20 +0000 (17:27 +0000)]
The attached patch fixes some spelling mistakes, makes the
comments on one of the optimizer functions a lot more
clear, adds a summary of the recent KSQO discussion to the
comments in the code, adds regression tests for the bug with
sequence state Tom fixed recently and another reg. test, and
removes some PostQuel legacy stuff: ExecAppend -> ExecInsert,
ExecRetrieve -> ExecSelect, etc. This was changed because the
elog() messages from this routine are user-visible, so we
should be using the SQL terms.
Neil Conway
Bruce Momjian [Tue, 25 Jun 2002 17:26:11 +0000 (17:26 +0000)]
Here is a patch for a memory leak in rtree.c, version 7.2.1 (in code
that I submitted last year, alas).
Kenneth Been
Dave Cramer [Tue, 25 Jun 2002 16:30:49 +0000 (16:30 +0000)]
fixed retrieval of foreign/primary keys in imported/exported keys
Bruce Momjian [Tue, 25 Jun 2002 03:35:13 +0000 (03:35 +0000)]
Update FAQ.
Bruce Momjian [Tue, 25 Jun 2002 03:32:31 +0000 (03:32 +0000)]
Add more info on regex's using INDEX.
Hiroshi Inoue [Tue, 25 Jun 2002 01:54:19 +0000 (01:54 +0000)]
1) Add support for GB18030.
2) Fix a bug about the handling of large objects.
Bruce Momjian [Tue, 25 Jun 2002 01:45:58 +0000 (01:45 +0000)]
Update FAQ.
Tom Lane [Mon, 24 Jun 2002 23:12:06 +0000 (23:12 +0000)]
plpgsql's PERFORM statement now sets FOUND depending on whether any
rows were returned by the performed query. Per recent pgsql-general
discussion.
Tom Lane [Mon, 24 Jun 2002 22:17:01 +0000 (22:17 +0000)]
Document quote_ident and quote_literal in the main list of string functions,
as suggested by Josh Berkus.
Barry Lind [Mon, 24 Jun 2002 06:16:27 +0000 (06:16 +0000)]
patch to add support for callable statements to the jdbc driver. The patch was submitted by Paul Bethe pmbethe@yahoo.com
Barry Lind [Mon, 24 Jun 2002 05:14:26 +0000 (05:14 +0000)]
patch to update zh_TW message file for jdbc submitted by Zhenband Wei (forth@mail.net.tw)
Barry Lind [Mon, 24 Jun 2002 05:09:29 +0000 (05:09 +0000)]
patch submitted by Jason Davies jason@netspade.com to improve ResultSetMetaData.getColumnClassName() support
Barry Lind [Mon, 24 Jun 2002 04:53:05 +0000 (04:53 +0000)]
fixed bug reported by Wolfgang Winter w.winter@logitags.com where historic timestamps which do not have timezone info were being interpreted in local timezone instead of GMT. Also added a check to support timestamp vs. timestamptz in this code
Bruce Momjian [Sun, 23 Jun 2002 22:15:04 +0000 (22:15 +0000)]
Link dbmirror into /contrib system.
Bruce Momjian [Sun, 23 Jun 2002 21:58:08 +0000 (21:58 +0000)]
Add dbmirror to /contrib. Minor C cleanups and Makefile.
Steven Singer
Bruce Momjian [Sun, 23 Jun 2002 21:29:32 +0000 (21:29 +0000)]
It seems that ExecInit/EndIndexScan is leaking some memory...
For example, if I run a query, that uses an index scan, and call
MemoryContextSt ats (CurrentMemoryContext) before ExecutorStart() and
after ExecutorEnd() in ProcessQuery(), I am consistently see ing that
the 'after' call shows 256 bytes more used, then 'before'...
The problem seems to be in ExecEndIndexScan - it does not release
scanstate, ind exstate, indexstate->iss_RelationDescs and indexstate ->
iss_ScanDescs...
Dmitry Tkach
Bruce Momjian [Sun, 23 Jun 2002 21:20:38 +0000 (21:20 +0000)]
Add indexing for isbn and issn.
Dan Weston
Bruce Momjian [Sun, 23 Jun 2002 21:16:29 +0000 (21:16 +0000)]
Add MIN/MAX LIMIT/OFFSET mention.
Bruce Momjian [Sun, 23 Jun 2002 20:30:48 +0000 (20:30 +0000)]
Remove unused INET6 variable.
Bruce Momjian [Sun, 23 Jun 2002 20:09:23 +0000 (20:09 +0000)]
Update dbsize documentation with:
Copy this directory to contrib/dbsize in your PostgreSQL source tree.
Then just run make; make install. Finally, load the functions into any
database using dbsize.sql.
When computing the size of a table, it does not include TOAST or index
disk space.
Bruce Momjian [Sun, 23 Jun 2002 14:56:16 +0000 (14:56 +0000)]
Remove INET6 from SSL. We don't support INET6 yet.
Bruce Momjian [Sun, 23 Jun 2002 03:51:55 +0000 (03:51 +0000)]
Rename command to reindexdb, for consistency.
Bruce Momjian [Sun, 23 Jun 2002 03:45:15 +0000 (03:45 +0000)]
Mention REINDEX can be used for disk space reclaimation too.
Bruce Momjian [Sun, 23 Jun 2002 03:37:12 +0000 (03:37 +0000)]
Handle mixed-case names in reindex script.
Document need for reindex in SGML docs.
Bruce Momjian [Sat, 22 Jun 2002 04:08:07 +0000 (04:08 +0000)]
uint -> uint32, portability.
Thomas G. Lockhart [Sat, 22 Jun 2002 02:04:55 +0000 (02:04 +0000)]
Implement SQL99 CREATE CAST and DROP CAST statements.
Also implement alternative forms to expose the PostgreSQL CREATE FUNCTION
features.
Implement syntax for READ ONLY and READ WRITE clauses in SET TRANSACTION.
READ WRITE is already implemented (of course).
Implement syntax for "LIKE table" clause in CREATE TABLE. Should be fairly
easy to complete since it resembles SELECT INTO.
Implement MATCH SIMPLE clause for foreign key definitions. This is explicit
SQL99 syntax for the default behavior, so we now support it :)
Start implementation of shorthand for national character literals in
scanner. For now, just swallow the leading "N", but sometime soon let's
figure out how to pass leading type info from the scanner to the parser.
We should use the same technique for binary and hex bit string literals,
though it might be unusual to have two apparently independent literal
types fold into the same storage type.
Bruce Momjian [Fri, 21 Jun 2002 20:13:08 +0000 (20:13 +0000)]
Done:
> * -Test hash index performance and discourage usage
Bruce Momjian [Fri, 21 Jun 2002 19:48:18 +0000 (19:48 +0000)]
Add mention of segmented files to oid2name.
Bruce Momjian [Fri, 21 Jun 2002 19:34:18 +0000 (19:34 +0000)]
Add reindex utility to /contrib.
Shaun Thomas <sthomas@townnews.com>
Bruce Momjian [Fri, 21 Jun 2002 19:17:40 +0000 (19:17 +0000)]
Mention dbsize in database sizing manual section.
Bruce Momjian [Fri, 21 Jun 2002 19:06:44 +0000 (19:06 +0000)]
Mention "PostgreSQL"'s hashes as slower/similar to btree.
Bruce Momjian [Fri, 21 Jun 2002 16:52:00 +0000 (16:52 +0000)]
Update hash warning in manual.
Bruce Momjian [Fri, 21 Jun 2002 03:25:53 +0000 (03:25 +0000)]
Document problems with hash indexes compared to btree.
Bruce Momjian [Fri, 21 Jun 2002 02:59:38 +0000 (02:59 +0000)]
Remove Jan's copyright, with his approval.
Bruce Momjian [Fri, 21 Jun 2002 02:01:04 +0000 (02:01 +0000)]
Update FAQ.
Bruce Momjian [Fri, 21 Jun 2002 02:00:51 +0000 (02:00 +0000)]
Add pg_dump/restore item to FAQ.
Martijn van Oosterhout
Bruce Momjian [Thu, 20 Jun 2002 21:48:47 +0000 (21:48 +0000)]
Add new documentation on page format.
Martijn van Ooster
Bruce Momjian [Thu, 20 Jun 2002 20:51:45 +0000 (20:51 +0000)]
Clean up some copyrights.
Bruce Momjian [Thu, 20 Jun 2002 20:39:04 +0000 (20:39 +0000)]
Add another missing SRF file.
Bruce Momjian [Thu, 20 Jun 2002 20:37:00 +0000 (20:37 +0000)]
Add missing SRF file.
Bruce Momjian [Thu, 20 Jun 2002 20:35:56 +0000 (20:35 +0000)]
Add missing regression files for SRF.
Bruce Momjian [Thu, 20 Jun 2002 20:29:54 +0000 (20:29 +0000)]
Update copyright to 2002.
Bruce Momjian [Thu, 20 Jun 2002 17:19:08 +0000 (17:19 +0000)]
Here is a patch for Composite and Set returning function support. I made
two small changes to the API since last patch, which hopefully completes
the decoupling of composite function support from SRF specific support.
Joe Conway
Bruce Momjian [Thu, 20 Jun 2002 17:09:42 +0000 (17:09 +0000)]
Attached is a regression test patch for SRFs. I based it on the test
scripts that I have been using, minus the C function tests and without
calls to random() -- figured random() wouldn't work too well for a
regression test ;-)
Joe Conway
Bruce Momjian [Thu, 20 Jun 2002 16:57:00 +0000 (16:57 +0000)]
> Here's the first doc patch for SRFs. The patch covers general
> information and SQL language specific info wrt SRFs. I've taken to
> calling this feature "Table Fuctions" to be consistent with (at least)
> one well known RDBMS.
Joe Conway
Bruce Momjian [Thu, 20 Jun 2002 16:55:20 +0000 (16:55 +0000)]
Add from Dave Cramer:
JDBC
> o Compile under jdk 1.4
Bruce Momjian [Thu, 20 Jun 2002 16:49:41 +0000 (16:49 +0000)]
Update as done:
JDBC:
> o -Updateable resultSet
Bruce Momjian [Thu, 20 Jun 2002 16:00:44 +0000 (16:00 +0000)]
Improve COPY syntax to use WITH clause, keep backward compatibility.
Bruce Momjian [Thu, 20 Jun 2002 15:44:06 +0000 (15:44 +0000)]
This patch updates the CREATE LANGUAGE & pg_language docs for the 7.3
table structure.
Dave Page
Bruce Momjian [Thu, 20 Jun 2002 04:34:31 +0000 (04:34 +0000)]
Add new Russian FAQ.
Viktor Vislobokov
Bruce Momjian [Wed, 19 Jun 2002 16:36:13 +0000 (16:36 +0000)]
Add:
> * -Allow object creation to be disabled for specific users
Bruce Momjian [Wed, 19 Jun 2002 15:40:58 +0000 (15:40 +0000)]
Properly mark rules that return no value.
Tom Lane [Wed, 19 Jun 2002 13:46:09 +0000 (13:46 +0000)]
CacheMemoryContext should be DLLIMPORT.
Thomas G. Lockhart [Wed, 19 Jun 2002 06:11:36 +0000 (06:11 +0000)]
Split list of SQL99 features into "Supported" and "Unsupported" lists.
Bruce Momjian [Tue, 18 Jun 2002 17:56:41 +0000 (17:56 +0000)]
Wrap long gram.y lines.
Bruce Momjian [Tue, 18 Jun 2002 17:27:58 +0000 (17:27 +0000)]
Change CREATE DATABASE to use DefElem instead of constructing structure
members in gram.y. This is the prefered method for WITH and arbitrary
param/value pairs.
Bruce Momjian [Tue, 18 Jun 2002 00:28:11 +0000 (00:28 +0000)]
Improve rule action ordering in gram.y, more cleanups.
Bruce Momjian [Mon, 17 Jun 2002 20:38:04 +0000 (20:38 +0000)]
Mark noise keyword actions with {} rather than returning TRUE, like
opt_with and from_in.
Bruce Momjian [Mon, 17 Jun 2002 20:27:43 +0000 (20:27 +0000)]
Manually indent gram.y to be consistent.
Bruce Momjian [Mon, 17 Jun 2002 15:55:09 +0000 (15:55 +0000)]
Use KAME accessor macros for addr8.
Bruce Momjian [Mon, 17 Jun 2002 15:23:36 +0000 (15:23 +0000)]
Fix missing 'buf' variable in SSL sources and add missing includes.
Bruce Momjian [Mon, 17 Jun 2002 15:19:28 +0000 (15:19 +0000)]
Fix SSL DEBUG levels to match CVS elog flags.
Bruce Momjian [Mon, 17 Jun 2002 15:01:45 +0000 (15:01 +0000)]
Back out accidental COPY data changes.
Tom Lane [Mon, 17 Jun 2002 14:31:32 +0000 (14:31 +0000)]
Repair AlterTableOwner --- was failing for relations with indexes.
Michael Meskes [Mon, 17 Jun 2002 13:23:27 +0000 (13:23 +0000)]
Fixed parser bug concerning octal numbers in single quotes.
Bruce Momjian [Mon, 17 Jun 2002 07:33:25 +0000 (07:33 +0000)]
Rename DEBUG to DEBUG1 in SSL code.
Bruce Momjian [Mon, 17 Jun 2002 07:00:27 +0000 (07:00 +0000)]
Merge ALTER GROUP ADD/DROP rules by creating add_drop action.
Bruce Momjian [Mon, 17 Jun 2002 05:40:32 +0000 (05:40 +0000)]
Simplify optional WITH handling in CREATE USER, ALTER USER, CREATE
GROUP. Make WITH optional in CREATE DATABASE for consistency.
Dave Cramer [Sun, 16 Jun 2002 18:26:53 +0000 (18:26 +0000)]
implemented refresh row
Bruce Momjian [Sun, 16 Jun 2002 00:09:12 +0000 (00:09 +0000)]
Remove KSQO from GUC and move file to _deadcode.
Tom Lane [Sat, 15 Jun 2002 22:25:40 +0000 (22:25 +0000)]
Fix up memory leakage created by recent changes.
Tom Lane [Sat, 15 Jun 2002 22:15:03 +0000 (22:15 +0000)]
Ooops, fix busted markup.
Tom Lane [Sat, 15 Jun 2002 22:06:09 +0000 (22:06 +0000)]
Clean up gcc warnings. Avoid the bad habit of putting externs in .c
files rather than a header file where they belong. Pay some modicum
of attention to picking global routine names that aren't likely to
conflict with surrounding applications.
Tom Lane [Sat, 15 Jun 2002 21:52:31 +0000 (21:52 +0000)]
Fix up gcc warnings, improve comments.
Tom Lane [Sat, 15 Jun 2002 21:28:55 +0000 (21:28 +0000)]
Add a little more material to the new section about evaluation order.
Bruce Momjian [Sat, 15 Jun 2002 20:03:51 +0000 (20:03 +0000)]
Patch for current_schemas to optionally include implicit ...
Second cut attached. This one just adds a boolean option to the existing
function to indicate that implicit schemas are to be included (or not).
I remembered the docs as well this time :-)
Dave Page
Bruce Momjian [Sat, 15 Jun 2002 20:01:31 +0000 (20:01 +0000)]
PATCH SSL_pending() checks in libpq/fe-misc.c:
I am no longer pursuing a total non-blocking implementation. I haven't
found a good way to test it with the type of work that I do with
PostgreSQL. I do use blocking SSL sockets with this mod and have had no
problem whatsoever. The bug that I fixed in this patch is exceptionally
hard to reproduce reliably.
Jack Bates
Bruce Momjian [Sat, 15 Jun 2002 19:59:59 +0000 (19:59 +0000)]
WriteBuffer return value:
>I'd vote for changing WriteBuffer to
>return void, and have it elog() on bad argument.
Manfred Koizar
Bruce Momjian [Sat, 15 Jun 2002 19:58:53 +0000 (19:58 +0000)]
Update LOG_PID to mention it doesn't control syslog.
Oliver Elphick
Bruce Momjian [Sat, 15 Jun 2002 19:55:38 +0000 (19:55 +0000)]
Remove some pre-WAL relics:
SharedBufferChanged
BufferRelidLastDirtied
BufferTagLastDirtied
BufferDirtiedByMe
Manfred Koizar
Bruce Momjian [Sat, 15 Jun 2002 19:54:24 +0000 (19:54 +0000)]
This patch wraps all accesses to t_xmin, t_cmin, t_xmax, and t_cmax in
HeapTupleHeaderData in setter and getter macros called
HeapTupleHeaderGetXmin, HeapTupleHeaderSetXmin etc.
It also introduces a "virtual" field xvac by defining
HeapTupleHeaderGetXvac and HeapTupleHeaderSetXvac. Xvac is used by
VACUUM, in fact it is stored in t_cmin.
Manfred Koizar
Bruce Momjian [Sat, 15 Jun 2002 19:52:56 +0000 (19:52 +0000)]
The normal operation of our servers is to have tcpip_sockets enabled,
but occasionally I may need to shut down the server and restart it
w/o tcpip sockets. Postmaster has the -i option to turn on tcpip
connections, but it wasn't immediately clear how to easily or
temporarily turn it off (when it's been enabled in postgresql.conf).
In fact, it wasn't clear to me until digging in to postmaster.c that
I could pass '-c tcpip_socket=false' or '--tcpip_socket=false'.
(And then of course when I looked more closely at the man page I
realized I'd missed the proper part of the documentation.) What I'd
been looking for is a flag that would have the opposite effect of
'-i', and it's conceivable that others will be looking for specific
flags to do the opposite of '-F' and '-S'.
I was preparing to add options to postmaster until I realized that
maybe the solution is just to add some documentation.
If you'd rather have 1 character options to accomplish this, I'd be
happy to do that-- adding those 9 lines of code is definitely within
my ability. :) (Although, the "right" letter to be the opposite of -S
isn't clear to me, since -s is already taken.)
Ron Snyder.
Bruce Momjian [Sat, 15 Jun 2002 19:43:47 +0000 (19:43 +0000)]
Fix for TAB completion using GRANT DELETE in psql.
Oliver Elphick
Bruce Momjian [Sat, 15 Jun 2002 19:39:33 +0000 (19:39 +0000)]
The macaddr datatype understands most formats of MAC address, except 12
hex digits with no separators, eg
00AABBCCDDEE. This is easily remedied
with the following patch (against 7.2.1):
Mike Wyer
Bruce Momjian [Sat, 15 Jun 2002 19:37:48 +0000 (19:37 +0000)]
Noted with versions 7.0.3, 7.1.3, and 7.2.1:
The psql interpreter becomes unstable if variable substitutions
are used. The debugger GDB was unable to help however mpatrol
reports that the sprintf at mainloop.c:389 is steping one byte
farther than the allocation.
William K. Volkman
Bruce Momjian [Sat, 15 Jun 2002 19:34:51 +0000 (19:34 +0000)]
On Wed, 2002-05-29 at 01:41, Tom Lane wrote:
>
> > Is it a good idea to provide an example (such as the above), or should I
> > just try and describe the behaviour?
>
> Examples are generally good things ...
OK, the attached documentation patch provides some simple examples of
use of tablename as a parameter, %ROWTYPE and %TYPE.
In the end I decided that the documentation is literally correct, but
hard to follow without any examples explicitly showing the use of a
table name as a parameter.
Andrew McMillan
Bruce Momjian [Sat, 15 Jun 2002 19:30:40 +0000 (19:30 +0000)]
The method PgLargeObject::LOid() is missing an implementation in the .cc
file.
The program seems to compile ok, but when linking a program that uses
the call,
g++ chokes with an undefined reference error.
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
I include the code:
Oid PgLargeObject::LOid(){
return pgObject;
}
in the .cc file.
Chris Traylor
Bruce Momjian [Sat, 15 Jun 2002 19:13:04 +0000 (19:13 +0000)]
Add C++ indent tool.
Bruce Momjian [Sat, 15 Jun 2002 18:49:29 +0000 (18:49 +0000)]
This patch fixes a few minor problems with libpq++: remove the deprecated
PQExec(" ") in the wrapper around PQnotifies(), fix the Makefile for
the examples so that they will actually compile properly (with the
exception of #5, which depends on internal headers), make a minor change
to libpq++.h so that "make examples" now works on my machine, update
some documentation, fix some grammatical problems, and remove some of
the more hideous comments.
Neil Conway
Thomas G. Lockhart [Sat, 15 Jun 2002 03:00:09 +0000 (03:00 +0000)]
Add LOCALTIME and LOCALTIMESTAMP functions per SQL99 standard.
Remove ODBC-compatible empty parentheses from calls to SQL99 functions
for which these parentheses do not match the standard.
Update the ODBC driver to ensure compatibility with the ODBC standard
for these functions (e.g. CURRENT_TIMESTAMP, CURRENT_USER, etc).
Include a new appendix in the User's Guide which lists the labeled features
for SQL99 (the labeled features replaced the "basic", "intermediate",
and "advanced" categories from SQL92). features.sgml does not yet split
this list into "supported" and "unsupported" lists.
Thomas G. Lockhart [Sat, 15 Jun 2002 02:49:47 +0000 (02:49 +0000)]
Search the existing regular expression cache as a ring buffer.
Will optimize the case for repeated calls for the same expression,
which seems to be the most common case. Formerly, always searched
from the first entry.
May want to look at the least-recently-used algorithm to make sure it
is identifying the right slots to reclaim. Seems silly to do math when
it seems that we could simply use an incrementing counter...
Thomas G. Lockhart [Sat, 15 Jun 2002 02:41:56 +0000 (02:41 +0000)]
Add NetBSD/MIPS as a supported platform.
Bruce Momjian [Sat, 15 Jun 2002 01:29:50 +0000 (01:29 +0000)]
Make encryption of stored passwords the default, as discussed months ago.
Bruce Momjian [Sat, 15 Jun 2002 00:52:23 +0000 (00:52 +0000)]
Remove pfrees of cached pg_pwd file, per Tom Lane.
Dave Cramer [Fri, 14 Jun 2002 14:01:36 +0000 (14:01 +0000)]
added empty result set testing