Bruce Momjian [Tue, 24 Jun 2003 23:26:46 +0000 (23:26 +0000)]
Alter query.sgml to mention PostgreSQL as an ORDBMS. This falls in line
with advocacy and 'portal' websites.
Link to createdb / dropdb from the tutorial page about create / dropdb.
A pair of notes were asking about more info...
Rod Taylor
Bruce Momjian [Tue, 24 Jun 2003 23:25:44 +0000 (23:25 +0000)]
In an attempt to simplify my life I'm submitting this patch that
restructures the deferred trigger queue. The fundamental change is to
put all the static variables to hold the deferred triggers in a single
structure.
Alvaro Herrera
Bruce Momjian [Tue, 24 Jun 2003 23:20:08 +0000 (23:20 +0000)]
Add x86_64 support for spinlocks.
Jeffrey W. Baker
Bruce Momjian [Tue, 24 Jun 2003 23:19:11 +0000 (23:19 +0000)]
Small patch to link to the proper place in the "runtime" file,
and to add the "schemaname" column to the description of the
pg_stats view.
Greg Sabino Mullane
Bruce Momjian [Tue, 24 Jun 2003 23:14:49 +0000 (23:14 +0000)]
Array mega-patch.
Joe Conway
Bruce Momjian [Tue, 24 Jun 2003 23:05:20 +0000 (23:05 +0000)]
Done:
> * -Add IPv6 capability to INET/CIDR types
Bruce Momjian [Tue, 24 Jun 2003 22:59:46 +0000 (22:59 +0000)]
Jim C. Nasby wrote:
> Second argument to metaphone is suposed to set the limit on the
> number of characters to return, but it breaks on some phrases:
>
> usps=# select metaphone(a,3),metaphone(a,4),metaphone(a,20) from
> (select 'Hello world'::varchar AS a) a;
> HLW | HLWR | HLWRLT
>
> usps=# select metaphone(a,3),metaphone(a,4),metaphone(a,20) from
> (select 'A A COMEAUX MEMORIAL'::varchar AS a) a;
> AKM | AKMKS | AKMKSMMRL
>
> In every case I've found that does this, the 4th and 5th letters are
> always 'KS'.
Nice catch.
There was a bug in the original metaphone algorithm from CPAN. Patch
attached (while I was at it I updated my email address, changed the
copyright to PGDG, and removed an unnecessary palloc). Here's how it
looks now:
regression=# select metaphone(a,4) from (select 'A A COMEAUX
MEMORIAL'::varchar AS a) a;
metaphone
-----------
AKMK
(1 row)
regression=# select metaphone(a,5) from (select 'A A COMEAUX
MEMORIAL'::varchar AS a) a;
metaphone
-----------
AKMKS
(1 row)
Joe Conway
Bruce Momjian [Tue, 24 Jun 2003 22:42:42 +0000 (22:42 +0000)]
Prevent compiler warning from sprintf in recent ipv6 patch.
Bruce Momjian [Tue, 24 Jun 2003 22:21:24 +0000 (22:21 +0000)]
Add ipv6 address parsing support to 'inet' and 'cidr' data types.
Regression tests for IPv6 operations added.
Documentation updated to document IPv6 bits.
Stop treating IPv4 as an "unsigned int" and IPv6 as an array of
characters. Instead, always use the array of characters so we
can have one function fits all. This makes bitncmp(), addressOK(),
and several other functions "just work" on both address families.
add family() function which returns integer 4 or 6 for IPv4 or
IPv6. (See examples below) Note that to add this new function
you will need to dump/initdb/reload or find the correct magic
to add the function to the postgresql function catalogs.
IPv4 addresses always sort before IPv6.
On disk we use AF_INET for IPv4, and AF_INET+1 for IPv6 addresses.
This prevents the need for a dump and reload, but lets IPv6 parsing
work on machines without AF_INET6.
To select all IPv4 addresses from a table:
select * from foo where family(addr) = 4 ...
Order by and other bits should all work.
Michael Graff
Bruce Momjian [Tue, 24 Jun 2003 18:45:38 +0000 (18:45 +0000)]
Update:
< * Have SELECT '13 minutes'::interval display zero seconds
> * Have SELECT '13 minutes'::interval display zero seconds in ISO datestyle
Bruce Momjian [Tue, 24 Jun 2003 14:45:46 +0000 (14:45 +0000)]
Add -L../ecpglib -lecpg for Cygwin compile.
Bruce Momjian [Tue, 24 Jun 2003 03:42:44 +0000 (03:42 +0000)]
Add:
> * Have SELECT '13 minutes'::interval display zero seconds
Bruce Momjian [Tue, 24 Jun 2003 03:40:09 +0000 (03:40 +0000)]
Add:
> * Allow the regression tests to start postmaster with -i so the tests
> can be run on systems that don't support unix-domain sockets
Bruce Momjian [Tue, 24 Jun 2003 02:54:23 +0000 (02:54 +0000)]
Add:
> * Rename /scripts directory because they are all C programs now
Bruce Momjian [Tue, 24 Jun 2003 02:53:36 +0000 (02:53 +0000)]
Add:
<
> o Allow ALTER TABLE to modify column lengths and change to binary
> compatible types
Bruce Momjian [Tue, 24 Jun 2003 02:39:49 +0000 (02:39 +0000)]
Add:
> * Modify pg_get_triggerdef() to take a boolean to pretty-print,
> and use that as part of pg_dump along with psql
>
Bruce Momjian [Tue, 24 Jun 2003 01:54:57 +0000 (01:54 +0000)]
Update:
* Allow UPDATE, DELETE to handle table aliases for self-joins [delete]
Bruce Momjian [Tue, 24 Jun 2003 01:49:22 +0000 (01:49 +0000)]
typedef sa_family_t for cygwin.
Bruce Momjian [Tue, 24 Jun 2003 01:08:20 +0000 (01:08 +0000)]
Add:
> o Allow columns to be reordered using ALTER ... POSITION i col1 [,col2];
> have SELECT * and INSERT honor such ordering
Bruce Momjian [Tue, 24 Jun 2003 00:44:29 +0000 (00:44 +0000)]
Do not include:
#include <pwd.h>
#include <netdb.h>
in MS CC/Borland builds.
Bruce Momjian [Mon, 23 Jun 2003 23:52:00 +0000 (23:52 +0000)]
Remove references to sa_family_t, except when SOCKADDR_STORAGE requires
it.
Also handle __ss_family as a synonym for ss_family.
Kurt Roeckx
Bruce Momjian [Mon, 23 Jun 2003 19:33:40 +0000 (19:33 +0000)]
Add with '?':
> * Have initdb set DateStyle based on locale?
Bruce Momjian [Mon, 23 Jun 2003 19:33:25 +0000 (19:33 +0000)]
Add mention that the grep's have to be adjusted in pgtest.
Bruce Momjian [Mon, 23 Jun 2003 19:22:30 +0000 (19:22 +0000)]
Remove '?':
< from making invalid dates valid?
> from making invalid dates valid
Tom Lane [Mon, 23 Jun 2003 19:20:25 +0000 (19:20 +0000)]
Change pqInternalNotice to accept a format string and args instead of
just a preformatted message; per suggestion by Sean Chittenden.
Bruce Momjian [Mon, 23 Jun 2003 17:03:19 +0000 (17:03 +0000)]
Remove crypt.h from fe-connect.c --- not needed, and caused problems on
Solaris with Open SSL version 0.9.7b
Bruce Momjian [Mon, 23 Jun 2003 16:58:21 +0000 (16:58 +0000)]
Update Russian version of FAQ.
Bruce Momjian [Mon, 23 Jun 2003 04:31:25 +0000 (04:31 +0000)]
Add:
> * Exit postmaster if postgresql.conf can not be opened
Bruce Momjian [Mon, 23 Jun 2003 04:00:10 +0000 (04:00 +0000)]
Add:
* Allow SSL-enabled clients to turn off SSL transfers
Bruce Momjian [Mon, 23 Jun 2003 03:52:24 +0000 (03:52 +0000)]
Add:
> * Change CVS $Id$ to $PostgreSQL$
Tom Lane [Sun, 22 Jun 2003 22:04:55 +0000 (22:04 +0000)]
Revise hash join and hash aggregation code to use the same datatype-
specific hash functions used by hash indexes, rather than the old
not-datatype-aware ComputeHashFunc routine. This makes it safe to do
hash joining on several datatypes that previously couldn't use hashing.
The sets of datatypes that are hash indexable and hash joinable are now
exactly the same, whereas before each had some that weren't in the other.
Tom Lane [Sun, 22 Jun 2003 16:17:01 +0000 (16:17 +0000)]
Fix some index entries.
Tom Lane [Sun, 22 Jun 2003 16:16:44 +0000 (16:16 +0000)]
Adjust chapter ordering in Internals part to something that seems more
reasonable.
Michael Meskes [Sun, 22 Jun 2003 11:00:48 +0000 (11:00 +0000)]
Added missing terminating '\0' char for data put into char *.
Tom Lane [Sun, 22 Jun 2003 05:48:26 +0000 (05:48 +0000)]
Remove a lot of desperately obsolete material (which was all out of sight,
out of mind, because it'd been commented out years ago). Try to bring the
remains up to a reasonable level of currency, and give it all approximately
the same high level of abstraction.
Bruce Momjian [Sun, 22 Jun 2003 05:04:52 +0000 (05:04 +0000)]
Add question mark to item:
< from making invalid dates valid
> from making invalid dates valid?
Bruce Momjian [Sun, 22 Jun 2003 05:01:17 +0000 (05:01 +0000)]
Add:
> * Allow current datestyle to restrict dates; prevent month/day swapping
> from making invalid dates valid
> * Prevent month/day swapping of ISO dates to make invalid dates valid
Bruce Momjian [Sun, 22 Jun 2003 04:22:57 +0000 (04:22 +0000)]
Add pgtest script.
Tom Lane [Sun, 22 Jun 2003 00:56:58 +0000 (00:56 +0000)]
Use libpq's new logic to get the server version, instead of doing it ourselves.
Tom Lane [Sun, 22 Jun 2003 00:29:29 +0000 (00:29 +0000)]
Bring the libpq example programs into the 21st century.
Tom Lane [Sat, 21 Jun 2003 23:25:38 +0000 (23:25 +0000)]
Get rid of extraneous newline in PQendcopy error output (was causing
regression test diffs...).
Tom Lane [Sat, 21 Jun 2003 21:51:35 +0000 (21:51 +0000)]
Update libpq to make new features of FE/BE protocol available to
client applications. Some editorial work on libpq.sgml, too.
Tom Lane [Sat, 21 Jun 2003 19:33:36 +0000 (19:33 +0000)]
Fix some markup problems.
Tom Lane [Fri, 20 Jun 2003 21:58:02 +0000 (21:58 +0000)]
Fix for extended-query protocol: in event of error, backend was issuing
a ReadyForQuery (Z message) immediately and then another one after the
Sync message arrives. Suppress the first one to make it work per spec.
Michael Meskes [Fri, 20 Jun 2003 15:16:06 +0000 (15:16 +0000)]
Synced with backend.
Michael Meskes [Fri, 20 Jun 2003 13:36:34 +0000 (13:36 +0000)]
Just another Informix compatibility change. They uses "free" for cursors as wellafter closing them.
Michael Meskes [Fri, 20 Jun 2003 13:20:09 +0000 (13:20 +0000)]
Just another ecpg todo done.
Michael Meskes [Fri, 20 Jun 2003 12:01:46 +0000 (12:01 +0000)]
Sorry, missed a file.
Michael Meskes [Fri, 20 Jun 2003 12:00:59 +0000 (12:00 +0000)]
Allow constants in using clauses.
Tom Lane [Fri, 20 Jun 2003 04:09:12 +0000 (04:09 +0000)]
We neglected to set conn->raddr.salen, leading to breakage of CANCEL
and probably other stuff.
Tom Lane [Thu, 19 Jun 2003 23:22:40 +0000 (23:22 +0000)]
Disallow dollar sign in operator names, instead allow it as a non-first
character in identifiers. The first change eliminates the current need
to put spaces around parameter references, as in "x<=$2". The second
change improves compatibility with Oracle and some other RDBMSes. This
was discussed and agreed to back in January, but did not get done.
Michael Meskes [Thu, 19 Jun 2003 09:52:11 +0000 (09:52 +0000)]
Fixed fetch into char * and added missing prototype for an Informix function.
Bruce Momjian [Wed, 18 Jun 2003 16:04:15 +0000 (16:04 +0000)]
Move thread checking code farther down in conflgure.
Peter Eisentraut [Wed, 18 Jun 2003 12:19:11 +0000 (12:19 +0000)]
Change clusterdb and vacuumdb into C programs.
Tom Lane [Tue, 17 Jun 2003 23:12:36 +0000 (23:12 +0000)]
Make FLOAT(p) measure the precision p in bits, not decimal digits, to
match the SQL standard. Document FLOAT and FLOAT(p) notations in
datatype.sgml. Per recent pghackers discussion.
Peter Eisentraut [Tue, 17 Jun 2003 18:00:48 +0000 (18:00 +0000)]
More information schema views.
Peter Eisentraut [Tue, 17 Jun 2003 17:58:54 +0000 (17:58 +0000)]
Add missing file to clean target.
Michael Meskes [Tue, 17 Jun 2003 07:28:22 +0000 (07:28 +0000)]
Fixed several more parsing bugs.
Tom Lane [Tue, 17 Jun 2003 04:35:03 +0000 (04:35 +0000)]
Fix error line numbers reported for errors in plpgsql_parse_word and
siblings.
Tom Lane [Mon, 16 Jun 2003 18:56:45 +0000 (18:56 +0000)]
Fix bugs in interval-to-time conversion: HAVE_INT64_TIMESTAMP case did not
work at all, and neither case behaved sanely for negative intervals.
Michael Meskes [Mon, 16 Jun 2003 16:58:11 +0000 (16:58 +0000)]
Fixed two small bugs.
Tom Lane [Mon, 16 Jun 2003 02:03:38 +0000 (02:03 +0000)]
Allow GROUP BY, ORDER BY, DISTINCT targets to be unknown literals,
silently resolving them to type TEXT. This is comparable to what we
do when faced with UNKNOWN in CASE, UNION, and other contexts. It gets
rid of this and related annoyances:
select distinct f1, '' from int4_tbl;
ERROR: Unable to identify an ordering operator '<' for type unknown
This was discussed many moons ago, but no one got round to fixing it.
Tom Lane [Sun, 15 Jun 2003 22:51:45 +0000 (22:51 +0000)]
Adjust nestloop-with-inner-indexscan plan generation so that we catch
some cases of redundant clauses that were formerly not caught. We have
to special-case this because the clauses involved never get attached to
the same join restrictlist and so the existing logic does not notice
that they are redundant.
Tom Lane [Sun, 15 Jun 2003 17:59:10 +0000 (17:59 +0000)]
Replace cryptic 'Unknown kind of return type' messages with something
hopefully a little more useful.
Tom Lane [Sun, 15 Jun 2003 16:42:08 +0000 (16:42 +0000)]
Cause GROUP BY clause to adopt ordering operators from ORDER BY when
both clauses specify the same targets, rather than always using the
default ordering operator. This allows 'GROUP BY foo ORDER BY foo DESC'
to be done with only one sort step.
Tom Lane [Sun, 15 Jun 2003 16:21:39 +0000 (16:21 +0000)]
index() -> strchr().
Michael Meskes [Sun, 15 Jun 2003 12:06:50 +0000 (12:06 +0000)]
Typo in version number.
Michael Meskes [Sun, 15 Jun 2003 11:10:09 +0000 (11:10 +0000)]
Some minor changes for new version numbering.
Michael Meskes [Sun, 15 Jun 2003 10:34:10 +0000 (10:34 +0000)]
Updating ECPG todo items.
Bruce Momjian [Sun, 15 Jun 2003 04:56:45 +0000 (04:56 +0000)]
Ecpg cleanups for prototypes.
Bruce Momjian [Sun, 15 Jun 2003 04:09:18 +0000 (04:09 +0000)]
Run autoconf/autoheader for ecpg change.
Bruce Momjian [Sun, 15 Jun 2003 04:07:58 +0000 (04:07 +0000)]
Make ecpg thread safe.
Lee Kindness
Bruce Momjian [Sat, 14 Jun 2003 19:21:42 +0000 (19:21 +0000)]
Move thread os defines into template files.
Bruce Momjian [Sat, 14 Jun 2003 18:20:33 +0000 (18:20 +0000)]
Handle threading in two more gethostbyname calls.
Bruce Momjian [Sat, 14 Jun 2003 17:49:54 +0000 (17:49 +0000)]
Make libpq thread-safe with configure --with-threads option.
Lee Kindness
Bruce Momjian [Sat, 14 Jun 2003 14:35:42 +0000 (14:35 +0000)]
Add thread.c for libpq threading, and hook it into libpq/configure.
Bruce Momjian [Fri, 13 Jun 2003 23:10:08 +0000 (23:10 +0000)]
Add --with-threads configure option to control threaded libpq.
Michael Meskes [Fri, 13 Jun 2003 10:50:58 +0000 (10:50 +0000)]
- Enable FETCH without INTO.
- Compatibility functions for INFORMIX handling of DECLARE statement.
Tom Lane [Fri, 13 Jun 2003 02:21:03 +0000 (02:21 +0000)]
Okay, recognize freebsd 2.* and 3.* too.
Tom Lane [Fri, 13 Jun 2003 01:50:50 +0000 (01:50 +0000)]
Expect FreeBSD 5.* to have standard float arithmetic.
Tom Lane [Thu, 12 Jun 2003 18:34:06 +0000 (18:34 +0000)]
Fix broken markup.
Bruce Momjian [Thu, 12 Jun 2003 17:31:50 +0000 (17:31 +0000)]
Add thread-enable compile variables into libpq.
Tom Lane [Thu, 12 Jun 2003 17:29:26 +0000 (17:29 +0000)]
Fix SQL function executor for case where last command of a function is
not a SELECT. We didn't use to allow that, but we do now.
Tom Lane [Thu, 12 Jun 2003 16:05:10 +0000 (16:05 +0000)]
<sys/socket.h> requires <sys/types.h> to already have been included
on some platforms.
Bruce Momjian [Thu, 12 Jun 2003 15:58:19 +0000 (15:58 +0000)]
Mention need for swap on Linux, and kill -9.
Bruce Momjian [Thu, 12 Jun 2003 15:31:02 +0000 (15:31 +0000)]
Document default Linux autocommit behavior, and show workaround.
Michael Meskes [Thu, 12 Jun 2003 12:52:24 +0000 (12:52 +0000)]
Install all header files.
Bruce Momjian [Thu, 12 Jun 2003 08:15:29 +0000 (08:15 +0000)]
Attached is the complete diff against current CVS.
Compiles on BCC 5.5 and VC++ 6.0 (with warnings).
Karl Waclawek
Bruce Momjian [Thu, 12 Jun 2003 08:11:07 +0000 (08:11 +0000)]
Back out patch that got bundled into another patch.
Bruce Momjian [Thu, 12 Jun 2003 08:02:57 +0000 (08:02 +0000)]
New patch with corrected README attached.
Also quickly added mention that it may be a qualified schema name.
Rod Taylor
Bruce Momjian [Thu, 12 Jun 2003 07:52:51 +0000 (07:52 +0000)]
Attached is a patch that enhances the output of psql's HTML mode.
The output now validates as HTML 4.01 Strict, XHTML 1.0 strict,
and XHTML 1.1 (assuming you wrap it in a valid html/body document).
It also wraps the output of PGRES_COMMAND_OK if the HTML tag is on,
for full compliance: this is why html_escaped_print has to be
externalized.
Greg Sabino Mullane greg@turnstep.com
Bruce Momjian [Thu, 12 Jun 2003 07:49:43 +0000 (07:49 +0000)]
Brief note about sequence cache not being cleared in other backends.
Actually clear the cache in the backend making the alteration. This
follows in the footsteps of setval().
Rod Taylor
Bruce Momjian [Thu, 12 Jun 2003 07:36:51 +0000 (07:36 +0000)]
IPv6 cleanups.
Kurt Roeckx
Andrew Dunstan
Bruce Momjian [Thu, 12 Jun 2003 07:00:57 +0000 (07:00 +0000)]
Back out this patch because it is patched inside a later patch.
---------------------------------------------------------------------------
here is a patch that allows CIDR netmasks in pg_hba.conf. It allows two
address/mask forms:
. address/maskbits, or
. address netmask (as now)
If the patch is accepted I will submit a documentation patch to cover
it.
This is submitted by agreement with Kurt Roeckx, who has worked on a
patch that covers this and other IPv6 issues.
Bruce Momjian [Thu, 12 Jun 2003 02:15:09 +0000 (02:15 +0000)]
I succeeded by fixing up setup.py:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
--- setup.py~ Tue Mar 19 08:21:14 2002
+++ setup.py Wed May 14 15:10:30 2003
@@ -30,8 +30,8 @@
optional_libs=[ 'libpqdll', 'wsock32', 'advapi32' ]
data_files = [ 'libpq.dll' ]
else:
- include_dirs=['/usr/include/pgsql']
- library_dirs=['usr/lib/pgsql']
+ include_dirs=['../../include','../libpq','/usr/include/pgsql']
+ library_dirs=['../libpq','/usr/lib/pgsql']
optional_libs=['pq']
data_files = []
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
George Young
Bruce Momjian [Thu, 12 Jun 2003 02:12:58 +0000 (02:12 +0000)]
Here is a patch that allows CIDR netmasks in pg_hba.conf. It allows two
address/mask forms:
. address/maskbits, or
. address netmask (as now)
If the patch is accepted I will submit a documentation patch to cover
it.
This is submitted by agreement with Kurt Roeckx, who has worked on a
patch that covers this and other IPv6 issues.
Andrew Dunstan
Bruce Momjian [Thu, 12 Jun 2003 02:02:24 +0000 (02:02 +0000)]
Add Linux restart --- Slawomir Sudnik
Add "-l $PGLOG" for restart --- Darko Prenosil
Bruce Momjian [Thu, 12 Jun 2003 01:42:21 +0000 (01:42 +0000)]
Up to now, SerializableSnapshot and QuerySnapshot are malloc'ed and
free'd for every transaction or statement, respectively. This patch
puts these data structures into static memory, thus saving a few CPU
cycles and two malloc calls per transaction or (in isolation level
READ COMMITTED) per query.
Manfred Koizar
Bruce Momjian [Thu, 12 Jun 2003 01:38:08 +0000 (01:38 +0000)]
psql: tab completion for \encoding
Ian Barwick
Bruce Momjian [Thu, 12 Jun 2003 01:36:44 +0000 (01:36 +0000)]
This patch updates pg_autovacuum in several ways:
* A few bug fixes
* fixes solaris compile and crash issue
* decouple vacuum analyze and analyze thresholds
* detach from tty (dameonize)
* improved logging layout
* more conservative default configuration
* improved, expanded and updated README
please apply and 1st convenience, or before code freeze which ever comes
first :-)
At this point I think I have brought pg_autovacuum and its client side
design as far as I think it should go. It works, keeping file sizes in
check, helps performance and give the administrator a fair amount
flexibility in configuring it.
Next up is to do the FSM based design that is integrated into the back
end.
p.s. Thanks to Christopher Browne for his help.
Matthew T. O'Connor