git.postgresql.org Git - postgresql.git/log
Add as binary mode
re-add as binary
Improve pgindent processing of comment after 'else'.
Improve comment of pg_dump Win32 link workaround.
Improve comment after 'else' handling of pgindent.
Neil Conway [Thu, 7 Oct 2004 00:08:04 +0000 (00:08 +0000)]
Allow the spinlock test to be compiled successfully in a vpath build.
Tom Lane [Thu, 7 Oct 2004 00:03:15 +0000 (00:03 +0000)]
XOR process PID into a backend's initial random seed, to ensure that
different backends get a reasonably wide set of initial seeds even if
gettimeofday returns tv_usec values with only a few bits of precision.
Per recent discussion.
Neil Conway [Wed, 6 Oct 2004 23:41:59 +0000 (23:41 +0000)]
Document what the "rep; nop" x86 assembler sequence is actually equivalent
to, and what it is intended to do.
Neil Conway [Wed, 6 Oct 2004 23:31:45 +0000 (23:31 +0000)]
Capitalize some SQL keywords the previous commit missed, for consistency.
Say "history is not supported" and remove "on this platform" for lack of
readline.
Suppress psql \s help display for platforms like Win32 that don't
typically install witn readline, and throw an error if they try to
access it.
Add mention of win32ver.rc for update for minor release.
Fix improper defines for uid_t and gid_t. Had them backwards.
Uppercase SQL keywords in query for clarity.
This simple patch fixes a typo, ensure pg_config is removed in win32
and correct some splitted message mistake.
Euler Taveira de Oliveira
Fix pg_dumpall to use double-quote for Win32 arguments.
Luiz K. Matsumura
The Win32 (mingw) build of libpq seems to have lost it's SSL libs from
the link step resulting in a build failure. The attached patch fixes
that.
Dave Page
Use #define instead of typedef for plperl because perl defines
uid_t/gid_t too.
Update win32ver.rc to 8,0,000,000. Mention it needs updating in
RELEASE_CHANGES.
Improve consistency of win32 version sed script.
Fix for Win32 file version sed macro, per report from Dave Page.
Here is a patch to fix win32 ssl builds. Summary of changes:
* Links with -leay32 and -lssleay32 instead of crypto and ssl. On win32,
"crypto and ssl" is only used for static linking.
* Initializes SSL in the backend and not just in the postmaster. We
cannot pass the SSL context from the postmaster through the parameter
file, because it contains function pointers.
* Split one error check in be-secure.c. Previously we could not tell
which of three calls actually failed. The previous code also returned
incorrect error messages if SSL_accept() failed - that function needs to
use SSL_get_error() on the return value, can't just use the error queue.
* Since the win32 implementation uses non-blocking sockets "behind the
scenes" in order to deliver signals correctly, implements a version of
SSL_accept() that can handle this. Also, add a wait function in case
SSL_read or SSL_write() needs more data.
Magnus Hagander
Allow plpython to build on Win32.
Magnus Hagander
Adjustment to test on unix domain socket variable for pg_hba.conf
default settings, rather than just Win32.
Remove pg_hba.conf 'local' line for Win32 because it doesn't support unix domain
connections.
Andrew Dunstan
please find attached an alternate submission which addresses open item
"make pgxs install by default". It is up to the committers to chose.
(1) there is only one "install" target. no more "install-all-headers".
it simplifies/changes several makefiles.
(2) the documentation reflects the change.
(3) a minor fix on pgxs to use a nicer patch without a double slash.
Fabien Coelho
Neil Conway [Wed, 6 Oct 2004 08:20:58 +0000 (08:20 +0000)]
Slightly rearrange psql startup code so that we read psqlrc before printing
the startup banner. This allows "\set QUIET on" in psqlrc to do what the
user probably intended. Patch from Sean Chittenden, editorializing from
Neil Conway.
Add Win32 version info to client binaries.
Magnus Hagander
Add distclean target to pgevent.
Another tightening of Win32 typedefs.
Fix typo in recent Win32 typedef change.
Remove unused Win32 defines, convert them to typdefs, per suggestion
from Peter.
'::' is no longer interpreted as a variable in a prepare statement.
Neil Conway [Tue, 5 Oct 2004 00:14:45 +0000 (00:14 +0000)]
Pickup fix from upstream OpenBSD sources: mark a read-only local array as
"static" to reduce size of generated code slightly.
Neil Conway [Tue, 5 Oct 2004 00:12:49 +0000 (00:12 +0000)]
License cleanup: crypt.c and qsort.c to latest NetBSD CVS sources, to
pickup license clarification (3-clause BSD is now used). Add license
terms to memcmp.c (also from NetBSD), which previously had none.
Finally, pickup an upstream fix to crypt.c (const-ify some arrays).
Tom Lane [Mon, 4 Oct 2004 22:52:47 +0000 (22:52 +0000)]
Refer to ll_to_earth() function by its actual name.
Tom Lane [Mon, 4 Oct 2004 22:49:59 +0000 (22:49 +0000)]
Remove arithmetic operators on the 1-byte-char datatype, as per proposals
made several times in the past. Add coercion functions between "char"
and integer so that a workaround is possible if needed.
Initdb forced.
Tom Lane [Mon, 4 Oct 2004 22:13:14 +0000 (22:13 +0000)]
Correct the volatility labeling of ten timestamp-related functions,
per discussion from Friday. initdb not forced in this commit but I intend
to do that later.
Tom Lane [Mon, 4 Oct 2004 21:52:15 +0000 (21:52 +0000)]
PortalRun must guard against the possibility that the portal it's
running contains VACUUM or a similar command that will internally start
and commit transactions. In such a case, the original caller values of
CurrentMemoryContext and CurrentResourceOwner will point to objects that
will be destroyed by the internal commit. We must restore these pointers
to point to the newly-manufactured transaction context and resource owner,
rather than possibly pointing to deleted memory.
Also tweak xact.c so that AbortTransaction and AbortSubTransaction
forcibly restore a sane value for CurrentResourceOwner, much as they
have always done for CurrentMemoryContext. I'm not certain this is
necessary but I'm feeling paranoid today.
Responds to Sean Chittenden's bug report of 4-Oct.
Make sure no libs use libpgport by removing it from the link line.
Fix MinGW link failure with new libpgport processing.
Update comment on int64 printf speciifications for MinGW:
# MinGW uses '%I64d', though gcc throws an warning with -Wall,
# while '%lld' doesn't generate a warning, but doesn't work.
Readd -DFRONTEND to client makefiles because it still affects win32.h
defines.
Add CVS URL for docs.
Fix warnings from crypt.c compile.
Comment out unused variable.
Tom Lane [Mon, 4 Oct 2004 14:55:17 +0000 (14:55 +0000)]
Suppress getppid test on WIN32, per Dave Page.
Tom Lane [Mon, 4 Oct 2004 14:42:48 +0000 (14:42 +0000)]
Detect overflow in integer arithmetic operators (integer, smallint, and
bigint variants). Clean up some inconsistencies in error message wording.
Fix scanint8 to allow trailing whitespace in INT64_MIN case. Update
int8-exp-three-digits.out, which seems to have been ignored by the last
couple of people to modify the int8 regression test, and remove
int8-exp-three-digits-win32.out which is thereby exposed as redundant.
Make libpgport be front-end only and make libpgport_srv be a backend
library that uses palloc, ereport, etc. This simplifies the makefiles
for client applications.
Neil Conway [Mon, 4 Oct 2004 08:15:41 +0000 (08:15 +0000)]
Fix error in setseed() docs: "int32" is not a (SQL) type, but "integer" is.
Neil Conway [Mon, 4 Oct 2004 05:42:18 +0000 (05:42 +0000)]
Document that the semicolon following the final "END" in a function body
is optional.
Translation update
Translation updates
Tom Lane [Sun, 3 Oct 2004 00:13:29 +0000 (00:13 +0000)]
Add regression test inspired by Sebastian Böck.
Tom Lane [Sat, 2 Oct 2004 22:39:49 +0000 (22:39 +0000)]
Clean up handling of inherited-table update queries, per bug report
from Sebastian Böck. The fix involves being more consistent about
when rangetable entries are copied or modified. Someday we really
need to fix this stuff to not scribble on its input data structures
in the first place...
Update Farsi FAQ in ASCII.
Update length from 75 to 79.
Tom Lane [Fri, 1 Oct 2004 21:03:42 +0000 (21:03 +0000)]
Convert pg_stat_get_backend_idset to use the existing SRF support.
This seems the cleanest way of fixing its lack of a shutdown callback,
which was preventing it from working correctly in a query that didn't
run it to completion. Per bug report from Szima GÄbor.
Tom Lane [Fri, 1 Oct 2004 20:39:54 +0000 (20:39 +0000)]
fmgr_security_definer had better do a PG_TRY to ensure the outer userid
is restored on error exit.
Tom Lane [Fri, 1 Oct 2004 18:30:25 +0000 (18:30 +0000)]
Adjust postmaster to recognize that a lockfile containing its parent's PID
must be stale. Tweak example startup scripts to not use pg_ctl but launch
the postmaster directly, thereby ensuring that only the postmaster's direct
parent shell will be a postgres-owned process. In combination these should
fix the longstanding problem of the postmaster sometimes refusing to start
during reboot because it thinks the old lockfile is not stale.
Tom Lane [Fri, 1 Oct 2004 17:34:19 +0000 (17:34 +0000)]
Don't assume PQdb() will return a valid result from a failed connection.
Tom Lane [Fri, 1 Oct 2004 17:25:55 +0000 (17:25 +0000)]
Don't assume PQdb() will return a valid result from a failed connection.
Tom Lane [Fri, 1 Oct 2004 17:11:50 +0000 (17:11 +0000)]
Fallout from changing index locking rules: we can reduce the strength
of locking used by REINDEX. REINDEX needs only ShareLock on the parent
table, same as CREATE INDEX, plus an exclusive lock on the specific index
being processed.
Tom Lane [Fri, 1 Oct 2004 16:40:05 +0000 (16:40 +0000)]
Code review for NOWAIT patch: downgrade NOWAIT from fully reserved keyword
to unreserved keyword, use ereport not elog, assign a separate error code
for 'could not obtain lock' so that applications will be able to detect
that case cleanly.
Tom Lane [Fri, 1 Oct 2004 15:43:40 +0000 (15:43 +0000)]
Remove DROPs from contrib object creation scripts, per Dave Page.
Neil Conway [Fri, 1 Oct 2004 02:06:52 +0000 (02:06 +0000)]
Use 'override' when appending text to LDFLAGS, so the build doesn't break
if the user has defined LDFLAGS themselves.
Neil Conway [Fri, 1 Oct 2004 02:00:44 +0000 (02:00 +0000)]
Remove more traces of libpgtcl from the source tree. Also, make some
semi-related SGML cleanup. Original patch from ljb220@mindspring.com,
additional cleanup by Neil Conway.
Tom Lane [2004年9月30日 23:21:26 +0000 (23:21 +0000)]
Adjust index locking rules as per my proposal of earlier today. You
now are supposed to take some kind of lock on an index whenever you
are going to access the index contents, rather than relying only on a
lock on the parent table.
Tom Lane [2004年9月30日 21:12:45 +0000 (21:12 +0000)]
Add variant regression file to handle machines that convert -1e-700
to minus zero rather than zero; this includes at least Mac OS X 10.3
and Solaris 2.8.
Tom Lane [2004年9月30日 17:42:42 +0000 (17:42 +0000)]
Remove unnecessary use of index_open just to get the index name.
Tom Lane [2004年9月30日 16:38:39 +0000 (16:38 +0000)]
isinf.c needs <float.h> on some platforms, per Darcy Buskermolen.
Add a note suggesting that users should use the newer version of pg_dump
to perform upgrades, and cleanup some nearby text. Patch from Robert
Treat, editorializing by Neil Conway.
Add more index entries for reference pages related to prepare queries.
From Alvaro Herrera, editorializing by Neil Conway.
Update Brazilian FAQ.
Euler Taveira de Oliveira
Add an index entry for tablespaces. From Kris Jurka.
Tom Lane [2004年9月30日 00:24:27 +0000 (00:24 +0000)]
Come to think of it, functions in FROM have the same syntactic restriction
as CREATE INDEX did, and can be fixed the same way, for another small
improvement in usability and reduction in grammar size.
Tom Lane [2004年9月29日 23:39:20 +0000 (23:39 +0000)]
Split out everything that looks like a function call from c_expr into
a separate production func_expr. This allows us to accept all these
variants in the backwards-compatible syntax for creating a functional
index; which beats documenting exactly which things work and which don't.
Interestingly, it also seems to make the generated state machine a little
bit smaller.
Add Farsi version of FAQ.
Mahmoud Taghizadeh
Tom Lane [2004年9月29日 15:15:56 +0000 (15:15 +0000)]
Minor adjustments to improve the accuracy of our computation of required
shared memory size.
Minor documentation improvement.
Tom Lane [2004年9月28日 21:19:30 +0000 (21:19 +0000)]
Adjust obsolete comment about memory needs for lock table.
Tom Lane [2004年9月28日 20:46:37 +0000 (20:46 +0000)]
Arrange to preallocate all required space for the buffer and FSM hash
tables in shared memory. This ensures that overflow of the lock table
creates no long-lasting problems. Per discussion with Merlin Moncure.
Tom Lane [2004年9月28日 19:35:43 +0000 (19:35 +0000)]
Code review for recent dbsize changes. Fix some thinkos, enforce coding
style and message style standards, improve documentation.
An include path got missed out of the patch - see the attached fix.
This also adds debug build support to src/bin/psql/win32.mak.
Dave Page
Fix typo in docs.
Tom Lane [2004年9月28日 00:49:04 +0000 (00:49 +0000)]
Remove duplicate PQclear(res) operations leading to double free() and
subsequent core dump. It looks like at one time DBLINK_RES_ERROR_AS_NOTICE
didn't include a PQclear, but now it does and so these other ones are
duplicate.
Revert patch that removed BUFSIZ usage. The memory has to hold the
structures plus pointers used by the structure.
Small WIN32_CLIENT_ONLY cleanup for new build patch.
Remove use of large BUFSIZ for buffers and use the proper struct sizes.
This greatly helps threaded libpq programs.
Add new macro as shorthand for MS VC and Borland C++:
+ #if defined(_MSC_VER) || defined(__BORLANDC__)
+ #define WIN32_CLIENT_ONLY
+ #endif
More MS VC and BCC psql compile cleanups.
More Win32 cleanups for Dave Page.
Make adjustment for MS VC and BCC compile of psql, from Dave Page.
Improve MS VC builds for psql by handlling flex properly and prevent
rename prototype conflict.
Translation update
Translation updates
Translation update
New translations
Update docs for Borland CC build.
Remove inclusion of windows.h now that it is included in c.h, per idea
from Peter.
Add:
>
> * Consider automatic caching of queries at various levels:
> o Parsed query tree
> o Query execute plan
> o Query results
This is the main PostgreSQL git repository.
RSS
Atom