OSDN Git Service
Tom Lane [Wed, 3 Oct 2001 19:24:36 +0000 (19:24 +0000)]
Update error message wording for format_type change.
Tom Lane [Wed, 3 Oct 2001 19:18:42 +0000 (19:18 +0000)]
Remove no-longer-used macros.
Tom Lane [Wed, 3 Oct 2001 18:39:12 +0000 (18:39 +0000)]
Update incorrect expected file. Use 'timestamp without time zone'
datatype in test, to try to avoid any dependency on local time zone.
Bruce Momjian [Wed, 3 Oct 2001 18:38:06 +0000 (18:38 +0000)]
Update for GIST.
Bruce Momjian [Wed, 3 Oct 2001 18:36:03 +0000 (18:36 +0000)]
Update TODO list.
Bruce Momjian [Wed, 3 Oct 2001 18:35:41 +0000 (18:35 +0000)]
Update TODO list.
Tom Lane [Wed, 3 Oct 2001 18:32:42 +0000 (18:32 +0000)]
Teach format_type about time/timestamp precision, so that pg_dump and
psql's \d option work properly.
Tom Lane [Wed, 3 Oct 2001 18:25:59 +0000 (18:25 +0000)]
Add missing TIMESTAMPTZ case.
Bruce Momjian [Wed, 3 Oct 2001 17:38:41 +0000 (17:38 +0000)]
Update TODO list.
Bruce Momjian [Wed, 3 Oct 2001 17:38:13 +0000 (17:38 +0000)]
Update TODO list.
Tom Lane [Wed, 3 Oct 2001 17:22:05 +0000 (17:22 +0000)]
Some further kibitzing on cachability of datetime functions.
In particular, mark all I/O functions that can produce or consume
a date as noncachable, in light of existence of DateStyle variable.
Bruce Momjian [Wed, 3 Oct 2001 16:05:43 +0000 (16:05 +0000)]
Update TODO list.
Tom Lane [Wed, 3 Oct 2001 15:51:48 +0000 (15:51 +0000)]
Update for latest regression tests.
Tom Lane [Wed, 3 Oct 2001 15:50:48 +0000 (15:50 +0000)]
AdjustTimestampForTypmod does not work (at least not portably) on
-infinity and +infinity. Put TIMESTAMP_NOT_FINITE guard into the routine,
instead of forgetting it at some call sites. Fixes regression test
failures here.
Tom Lane [Wed, 3 Oct 2001 15:42:12 +0000 (15:42 +0000)]
Neatnik fetishism.
Thomas G. Lockhart [Wed, 3 Oct 2001 05:29:27 +0000 (05:29 +0000)]
Implement precision support for timestamp and time, both with and without
time zones.
SQL99 spec requires a default of zero (round to seconds) which is set
in gram.y as typmod is set in the parse tree. We *could* change to a
default of either 6 (for internal compatibility with previous versions)
or 2 (for external compatibility with previous versions).
Evaluate entries in pg_proc wrt the iscachable attribute for timestamp and
other date/time types. Try to recognize cases where side effects like the
current time zone setting may have an effect on results to decide whether
something is cachable or not.
Thomas G. Lockhart [Wed, 3 Oct 2001 05:24:22 +0000 (05:24 +0000)]
Minor fixup in spacing for tabular information.
Thomas G. Lockhart [Wed, 3 Oct 2001 05:23:12 +0000 (05:23 +0000)]
Fix up bad indenting in a few places.
Tom Lane [Tue, 2 Oct 2001 22:38:43 +0000 (22:38 +0000)]
Tweak to test HAVE_GETOPT_H before including <getopt.h>, so as to
build on systems without.
Tom Lane [Tue, 2 Oct 2001 21:39:36 +0000 (21:39 +0000)]
Add CREATE OR REPLACE FUNCTION syntax to allow replacing a function
definition without changing the function's OID, thereby not breaking
rules, views, triggers, etc that depend on it. From Gavin Sherry.
Vince Vielhaber [Tue, 2 Oct 2001 14:21:26 +0000 (14:21 +0000)]
Updated URLs.
Michael Meskes [Tue, 2 Oct 2001 14:08:28 +0000 (14:08 +0000)]
Re-added Tom's patch fixing my setlocale patch. I accidently
deleted it.
Bruce Momjian [Tue, 2 Oct 2001 01:21:16 +0000 (01:21 +0000)]
Update TODO list.
Bruce Momjian [Tue, 2 Oct 2001 01:20:46 +0000 (01:20 +0000)]
Update TODO list.
Bruce Momjian [Tue, 2 Oct 2001 01:20:14 +0000 (01:20 +0000)]
Update TODO list.
Bruce Momjian [Tue, 2 Oct 2001 01:20:05 +0000 (01:20 +0000)]
Update TODO list.
Tom Lane [Mon, 1 Oct 2001 23:26:55 +0000 (23:26 +0000)]
Revise shmget() and semget() failure messages to mention the possibility
of coping by reducing shared_buffers/max_connections settings.
Tom Lane [Mon, 1 Oct 2001 22:44:31 +0000 (22:44 +0000)]
Fix typo (block size is 8 kB not 8192 kB).
Bruce Momjian [Mon, 1 Oct 2001 21:47:24 +0000 (21:47 +0000)]
Fix wording.
Tom Lane [Mon, 1 Oct 2001 21:31:52 +0000 (21:31 +0000)]
Change pg_dump to produce CREATE INDEX commands by using the backend's
pg_get_indexdef() function, rather than reaching into the system catalogs
for itself. This eliminates a fair amount of redundant code. Also,
since I just changed pg_get_indexdef() to suppress display of default
index opclasses, this will mean that 7.2 and later dumps will not mention
opclasses unless they are non-default opclasses. Should make life easier
for future index opclass reorganizations.
Tom Lane [Mon, 1 Oct 2001 20:15:26 +0000 (20:15 +0000)]
Extend pg_get_indexdef() to know about index predicates. Also, tweak
it to suppress index opclass output for opclasses that are the default
for their datatype; only non-default opclasses are shown explicitly.
This is expected to improve portability of the CREATE INDEX command
across future versions of Postgres --- we've changed index opclasses
too often in the past to think we won't do so again.
Tom Lane [Mon, 1 Oct 2001 18:16:35 +0000 (18:16 +0000)]
Make inclusion logic for sys/sem.h and sys/ipc.h consistent across all
the files that need them. Per trouble report from Teodor.
Tom Lane [Mon, 1 Oct 2001 17:53:12 +0000 (17:53 +0000)]
Fix a couple of stray // comments.
Bruce Momjian [Mon, 1 Oct 2001 17:52:34 +0000 (17:52 +0000)]
Add sys/types.h for FreeBSD compile.
Teodor Sigaev
Bruce Momjian [Mon, 1 Oct 2001 17:46:46 +0000 (17:46 +0000)]
Update docs for 7.2 mention where appropriate.
Tom Lane [Mon, 1 Oct 2001 16:48:37 +0000 (16:48 +0000)]
Clean up a little more carefully around fork of pgstat subprocess.
Partial support for BEOS (not sure whether second fork of grandchild
process needs these extra calls or not; someone who has BEOS will need
to test it).
Bruce Momjian [Mon, 1 Oct 2001 16:12:23 +0000 (16:12 +0000)]
Add missing pgcrypto files.
Bruce Momjian [Mon, 1 Oct 2001 15:44:45 +0000 (15:44 +0000)]
Update to "7.2".
Bruce Momjian [Mon, 1 Oct 2001 15:33:55 +0000 (15:33 +0000)]
Run autoconf.
Bruce Momjian [Mon, 1 Oct 2001 15:33:31 +0000 (15:33 +0000)]
> > > > > - PostgreSQL requires to be compiled with --enable-multibyte
> > > > > and --enable-unicode-convertion if it ought to work correctly
> > > > > with Tcl/Tk >= 8.1 (client or server side).
> > > > >
> > > > > - PL/Tcl needs to be changed to use pg_do_encoding_conversion
> > > > > if it runs on a Tcl version >= 8.1 .
> > >
> > > > I'll do pl/tcl part in the next version of patch. Using this approach we
> > > > can eliminate overhead for databases in UNICODE.
> > >
> > > Any progress on this? I'd prefer to get rid of this --enable-pltcl-utf
> > > option before release.
> >
> > Done
> >
> > Next version removes --enable-pltcl-utf switch and enables embedded
> > utf conversion of pgsql if tcl version >=8.1 and --enable-unicode-conversion
Michael Meskes [Mon, 1 Oct 2001 12:02:28 +0000 (12:02 +0000)]
- Fixed truncate bug.
- Added patch by Christof Petig <christof.petig@wtal.de> to
clean up
ecpglib.
Tatsuo Ishii [Mon, 1 Oct 2001 08:16:38 +0000 (08:16 +0000)]
Update multibyte Japanese doc
Tom Lane [Mon, 1 Oct 2001 05:36:17 +0000 (05:36 +0000)]
Another round of cleanups for dynahash.c (maybe it's finally clean of
portability issues). Caller-visible data structures are now allocated
on MAXALIGN boundaries, allowing safe use of datatypes wider than 'long'.
Rejigger hash_create API so that caller specifies size of key and
total size of entry, not size of key and size of rest of entry.
This simplifies life considerably since each number is just a sizeof(),
and padding issues etc. are taken care of automatically.
Tom Lane [Mon, 1 Oct 2001 04:19:18 +0000 (04:19 +0000)]
Suppress timestamp_ops for backwards compatibility with 7.1 pg_dump.
Tatsuo Ishii [Mon, 1 Oct 2001 02:31:33 +0000 (02:31 +0000)]
Remove C++ style comment. Some compilers won't accept it.
Tatsuo Ishii [Mon, 1 Oct 2001 02:26:36 +0000 (02:26 +0000)]
Fix a compile error on a platform that does not have PAM.
Tatsuo Ishii [Mon, 1 Oct 2001 01:52:38 +0000 (01:52 +0000)]
Add pgstattuple
Tom Lane [Sun, 30 Sep 2001 22:30:37 +0000 (22:30 +0000)]
Make libpq++ safe again for older C++ compilers. Do 'using namespace std'
only if configure found it was safe to do so; do not assume const_cast
is available.
Bruce Momjian [Sun, 30 Sep 2001 22:18:29 +0000 (22:18 +0000)]
* regression tests
* minor doc updates
Marko Kreen
Bruce Momjian [Sun, 30 Sep 2001 22:17:51 +0000 (22:17 +0000)]
These are further fixes for double quotes missing in the various shell
scripts.
Justin Clift
Tom Lane [Sun, 30 Sep 2001 22:03:41 +0000 (22:03 +0000)]
Clean up encode/decode functions a little bit.
Tom Lane [Sun, 30 Sep 2001 21:48:58 +0000 (21:48 +0000)]
Fix sloppiness about static vs non-static declaration of functions.
Some compilers are pickier about this than gcc is.
Tom Lane [Sun, 30 Sep 2001 21:01:39 +0000 (21:01 +0000)]
pg_stat_get_backend_idset should reset fmgr_info->fn_extra at end of
execution, so that it restarts correctly if query tree is used again.
Tom Lane [Sun, 30 Sep 2001 20:16:21 +0000 (20:16 +0000)]
Allow the postmaster to accept changes in PGC_BACKEND GUC variables
from the config file, so that these changes will propagate to backends
started later. Already-started backends continue to ignore changes
in these variables.
Tom Lane [Sun, 30 Sep 2001 20:08:18 +0000 (20:08 +0000)]
ISTM that IsUnderPostmaster should mean we are a child process of the
postmaster ... it should not be set in the postmaster itself.
Bruce Momjian [Sun, 30 Sep 2001 19:18:29 +0000 (19:18 +0000)]
Change tar -T file to tar `cat file` for BSD tar.
Bruce Momjian [Sun, 30 Sep 2001 19:09:57 +0000 (19:09 +0000)]
Change tar -c -f to -cf for BSD tar.
Bruce Momjian [Sun, 30 Sep 2001 19:01:44 +0000 (19:01 +0000)]
Update TODO list.
Bruce Momjian [Sun, 30 Sep 2001 19:01:18 +0000 (19:01 +0000)]
Update TODO list.
Tom Lane [Sun, 30 Sep 2001 18:57:45 +0000 (18:57 +0000)]
Create a GUC parameter max_files_per_process that is a configurable
upper limit on what we will believe from sysconf(_SC_OPEN_MAX). The
default value is 1000, so that under ordinary conditions it won't
affect the behavior. But on platforms where the kernel promises far
more than it can deliver, this can be used to prevent running out of
file descriptors. See numerous past discussions, eg, pgsql-hackers
around 23-Dec-2000.
Tom Lane [Sun, 30 Sep 2001 17:37:32 +0000 (17:37 +0000)]
Addition of xid=int4 operator makes opr_sanity unhappy.
Tom Lane [Sun, 30 Sep 2001 16:23:30 +0000 (16:23 +0000)]
winsock_strerror crashed on me. This fixes a line of code that looks
cleverer than it actually is ;-) Braces are good for you :-)
Gerhard HÌring
Tom Lane [Sun, 30 Sep 2001 16:16:44 +0000 (16:16 +0000)]
Changes:
1. gist__int_ops is now without lossy
2. added sort entry in picksplit
Oleg Bartunov
Tom Lane [Sun, 30 Sep 2001 16:15:59 +0000 (16:15 +0000)]
Update required due to recent changes in FigureColname.
Peter Eisentraut [Sun, 30 Sep 2001 16:05:54 +0000 (16:05 +0000)]
Use <mediaobject> instead of <graphic> for forward compatibility. Be more
flexible about the extension of the graphic files, allow for other formats
in print output. (Generating these formats is not implemented yet.)
Peter Eisentraut [Sun, 30 Sep 2001 16:01:12 +0000 (16:01 +0000)]
Fix *.gif expansion to be empty when no gif files are used.
Hiroshi Inoue [Sun, 30 Sep 2001 06:46:58 +0000 (06:46 +0000)]
Add an operator xid '=' int and remove BINARY_COMPATI...
Bruce Momjian [Sun, 30 Sep 2001 00:50:05 +0000 (00:50 +0000)]
Update TODO list.
Bruce Momjian [Sun, 30 Sep 2001 00:49:15 +0000 (00:49 +0000)]
Update TODO list.
Bruce Momjian [Sun, 30 Sep 2001 00:46:15 +0000 (00:46 +0000)]
Update TODO list.
Bruce Momjian [Sun, 30 Sep 2001 00:45:48 +0000 (00:45 +0000)]
Back out change. Too many place to change too close to beta:
* HOLDER/HOLDERTAB rename to PROCLOCKLINK/PROCLOCKLINKTAG (Bruce)
Will return later.
Tom Lane [Sat, 29 Sep 2001 23:49:51 +0000 (23:49 +0000)]
Tweak btree page split logic so that when splitting a page that is
rightmost on its tree level, we split 2/3 to the left and 1/3 to the
new right page, rather than the even split we use elsewhere. The idea
is that when faced with a steadily increasing series of inserted keys
(such as sequence or timestamp values), we'll end up with a btree that's
about 2/3ds full not 1/2 full, which is much closer to the desired
steady-state load for a btree. Per suggestion from Ann Harrison of
IBPhoenix.
Hiroshi Inoue [Sat, 29 Sep 2001 23:01:26 +0000 (23:01 +0000)]
Allow comparison between xid and xid, int.
Bruce Momjian [Sat, 29 Sep 2001 21:37:06 +0000 (21:37 +0000)]
Update TODO list.
Bruce Momjian [Sat, 29 Sep 2001 21:35:14 +0000 (21:35 +0000)]
Do this TODO item:
* HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG (Tom)
Didn't use PROCLOCKLINK because it made PROCLOCKLINKTAG too long.
Tom Lane [Sat, 29 Sep 2001 21:16:30 +0000 (21:16 +0000)]
Cope with the likelihood that setlocale and localeconv will return
pointers to data that will be changed by any later call to setlocale.
Must copy what they return to be sure we get the right answer.
Karel Zak, further tweaks by Tom Lane.
Tom Lane [Sat, 29 Sep 2001 20:12:07 +0000 (20:12 +0000)]
Fix the setlocale problem in a way that actually works. setlocale
returns a string corresponding to the new setting, not the old,
therefore the previous patch was quite wrong.
Tom Lane [Sat, 29 Sep 2001 19:49:50 +0000 (19:49 +0000)]
Clean up comments.
Tom Lane [Sat, 29 Sep 2001 15:29:48 +0000 (15:29 +0000)]
Whoops, I was a tad too enthusiastic about using shared lock mode for
SInvalLock. GetSnapshotData(true) has to use exclusive lock, since
it sets MyProc->xmin.
Tom Lane [Sat, 29 Sep 2001 15:17:42 +0000 (15:17 +0000)]
Fixes for datetime-related regress tests, from Tom Lockhart.
Hiroshi Inoue [Sat, 29 Sep 2001 07:57:06 +0000 (07:57 +0000)]
Keep the contents of ItemPointerData not the pointers so that
per tuple memory context doesn't discard them.
Tom Lane [Sat, 29 Sep 2001 05:42:24 +0000 (05:42 +0000)]
Remove mistakenly-included file, per request from John Gray.
Tom Lane [Sat, 29 Sep 2001 05:33:25 +0000 (05:33 +0000)]
timetz test was omitted from parallel_schedule.
Tom Lane [Sat, 29 Sep 2001 05:11:10 +0000 (05:11 +0000)]
Update horology-no-DST-before-1970.out for new horology test.
Still need an update for horology-solaris-1947.out ...
Tom Lane [Sat, 29 Sep 2001 04:02:27 +0000 (04:02 +0000)]
Implement new 'lightweight lock manager' that's intermediate between
existing lock manager and spinlocks: it understands exclusive vs shared
lock but has few other fancy features. Replace most uses of spinlocks
with lightweight locks. All remaining uses of spinlocks have very short
lock hold times (a few dozen instructions), so tweak spinlock backoff
code to work efficiently given this assumption. All per my proposal on
pghackers 26-Sep-01.
Bruce Momjian [Sat, 29 Sep 2001 03:46:12 +0000 (03:46 +0000)]
I have made three changes to the rtree code: one bug fix and
two performance improvements. I put an explanation of the
changes at
http://cs1.cs.nyu.edu/been/postgres-rtree.html
The performance improvements are quite significant.
All the changes are in the file src/backend/access/rtree/rtree.c
I was working with the 7.1.3 code.
I'm including the diff output as an attachment.
Kenneth Been
Bruce Momjian [Sat, 29 Sep 2001 03:12:51 +0000 (03:12 +0000)]
Found type mismatch in random.c. Please apply this also.
Marko Kreen
Bruce Momjian [Sat, 29 Sep 2001 03:11:58 +0000 (03:11 +0000)]
I noticed that the contrib Makefiles were reorganized.
Converted pgcrypto one too.
* Changed default randomness source to libc random()
That way pgcrypto does not have any external dependencies
and should work everywhere.
* Re-enabled pgcrypto build in contrib/makefile
* contrib/README update - there is more stuff than
only 'hash functions'
* Noted the libc random fact in README.pgcrypto
Marko Kreen
Bruce Momjian [Sat, 29 Sep 2001 03:11:11 +0000 (03:11 +0000)]
A couple of lines were missing from my last patch - this one fixes things.
Liam Stewart
Bruce Momjian [Sat, 29 Sep 2001 03:09:32 +0000 (03:09 +0000)]
This is a simple patch to put double quotes around a few cases in
pg_ctl.sh which were unquoted when inside of [].
Justin Clift
Bruce Momjian [Sat, 29 Sep 2001 03:08:01 +0000 (03:08 +0000)]
Per the recent discussion there's been some code changes in JDBC's
DatabaseMetaData.getColumn(). I proposed a patch that would change the
number of queries to find out all columns in a table from 2 * N + 1 to 1 (N
being the number of columns reported) by using some outer joins. I also
fixed the fact that getColumns() only returned columns that had a default
defined. OTOH, I did not use to change the code required for obtaining a
column's remarks (by using col_description() for 7.2 and requested by Tom
Lane).
Finally, I have found a way to get all the column details in a single query
*and* use col_description() for 7.2 servers. A patch is attached. It
overrules Ren? Pijlman's fix for this that was committed just today, but
still used N + 1 queries (sorry Ren? ;-) )
I also fixed the return values for TABLE_CAT and TABLE_SCHEM from "" to
null, to be more standard compliant (and requested in Ren?'s mail found at
http://fts.postgresql.org/db/mw/msg.html?mid=
1034253).
As always, the JDBC1 version has not been tested as I have no JDK 1.1
Jeroen van Vianen
Hiroshi Inoue [Sat, 29 Sep 2001 02:48:04 +0000 (02:48 +0000)]
Fix the bug about boolean type handling reported by
Kristis Markis.
Bruce Momjian [Fri, 28 Sep 2001 21:39:31 +0000 (21:39 +0000)]
Update TODO list.
Thomas G. Lockhart [Fri, 28 Sep 2001 20:48:17 +0000 (20:48 +0000)]
Fix markup to allow compilation. The chapters on failure and recovery
need more work, but at least they have something now.
Bruce Momjian [Fri, 28 Sep 2001 19:25:36 +0000 (19:25 +0000)]
Improve wording.
Bruce Momjian [Fri, 28 Sep 2001 19:06:50 +0000 (19:06 +0000)]
Add to thread thread.
Bruce Momjian [Fri, 28 Sep 2001 18:56:57 +0000 (18:56 +0000)]
Add to thread.
Bruce Momjian [Fri, 28 Sep 2001 18:30:05 +0000 (18:30 +0000)]
Add to threads.
Bruce Momjian [Fri, 28 Sep 2001 15:31:25 +0000 (15:31 +0000)]
Update TODO list.
Bruce Momjian [Fri, 28 Sep 2001 15:31:08 +0000 (15:31 +0000)]
Update TODO list.