Tom Lane
884cd4b6be
Reduce a couple of debugging messages from LOG to DEBUG1 category.
2002-11-01 19:33:09 +00:00
Tom Lane
8d43947886
Reduce messages associated with shell-type function arguments/results
...
from WARNING to NOTICE, since they are expected messages in common cases.
2002-11-01 19:19:58 +00:00
Tom Lane
03a2371317
Update to match expected results on OS X 10.2.
2002-11-01 18:15:34 +00:00
Tom Lane
0d97eb6ac8
After elog(PANIC), exit with abort() not proc_exit(). This allows a
...
core file to be produced for debugging, and avoids trying to run the
normal proc-exit cleanup hooks, which are likely to cause additional
problems if the system is hosed.
2002-11-01 17:55:23 +00:00
Tom Lane
8631924e51
Correct ordering of geometry/freebsd entries, add one for freebsd5.
2002-11-01 16:32:32 +00:00
Tom Lane
a4007c0d5f
Update for test changes.
2002-11-01 15:20:09 +00:00
Tom Lane
16cc5372e4
Avoid malloc(0) when printing a table of no columns. On some platforms
...
this returns NULL, which confuses the code.
2002-11-01 15:12:19 +00:00
Tom Lane
643dfb783d
Fix some bogus comments.
2002-11-01 00:40:23 +00:00
Tom Lane
966a4ca9b3
Add missing #include <errno.h>, per gripe from Alessio Bragadini.
2002-10-31 22:37:19 +00:00
Tom Lane
1ce069b067
Got tired of explaining why this Assert is not wrong.
2002-10-31 21:59:32 +00:00
Tom Lane
55e4ef138c
Code review for statement_timeout patch. Fix some race conditions
...
between signal handler and enable/disable code, avoid accumulation of
timing error due to trying to maintain remaining-time instead of
absolute-end-time, disable timeout before commit not after.
2002-10-31 21:34:17 +00:00
Tom Lane
8a45a2e9b6
Fix miscalculation of remaining free space during tuple chain moving.
...
Only affects machines where MAXALIGN > 4, and is a boundary-condition
case even there, but still surprising that it's not been identified
before. Also reduce tuple chain move give-up messages from WARNING
to DEBUG1, since they are not unexpected conditions.
2002-10-31 19:25:29 +00:00
Tom Lane
5936055d46
Avoid use of inline functions that are not declared static. Needed to
...
conform to C99's brain-dead notion of how inline functions should work.
2002-10-31 19:11:48 +00:00
Bruce Momjian
2982b97f71
Clean up gram.y trailing spaces.
2002-10-31 02:31:00 +00:00
Barry Lind
a50d08f793
Return something meaningful for Statement.getFetchSize(). Previously we were
...
returning an exception when this method was called.
Modified Files:
jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
2002-10-30 04:33:29 +00:00
Bruce Momjian
b1039e93d8
Add additional ORDER BY to join regression test, per Tatsuo.
2002-10-30 01:28:12 +00:00
Bruce Momjian
9e90d11810
Remove /src/utils. Is final cleanup of getopt.c resurection.
2002-10-30 01:15:51 +00:00
Bruce Momjian
6d8c3d4eb3
Add popen/pclose -> _popen/_pclose() mapping for Win32.
2002-10-29 19:35:33 +00:00
Bruce Momjian
972c7b8690
Update comments.
2002-10-29 04:24:30 +00:00
Bruce Momjian
b064206c09
getopt.c now in /port, for MS Win.
2002-10-29 04:23:30 +00:00
Bruce Momjian
87a3e39e7c
Re-add getopt.c for MSWin psql.
2002-10-29 04:22:37 +00:00
Bruce Momjian
1068548726
Re-add getopt.c.
2002-10-29 04:20:15 +00:00
Bruce Momjian
579e5dcbaa
Update regression for FreeBSD 4.7, for Larry Rosenman
2002-10-29 03:44:22 +00:00
Bruce Momjian
13d7a689ec
Add ORDER BY to join regression test.
2002-10-28 22:54:45 +00:00
Bruce Momjian
323e03aed4
fseeko NetBSD fix.
2002-10-28 00:00:25 +00:00
Tom Lane
7a0671a37c
Suppress compile warnings on OS X.
2002-10-27 02:52:10 +00:00
Tom Lane
3518fbe86f
Add missing semicolons to a few PG_FUNCTION_INFO_V1 calls.
2002-10-26 15:01:01 +00:00
Tom Lane
a77b862c09
Add dummy variable declaration to PG_FUNCTION_INFO_V1() to prevent
...
'empty declaration' warnings from compilers that care about such things.
Per discussion back before 7.2 release; we didn't do it then because
we'd already missed all the beta cycle ...
2002-10-25 22:17:32 +00:00
Tom Lane
ba963c651b
Remove #warning directive, which is nonstandard and isn't really
...
buying us anything to make it worth the porting risk. Per discussion
quite some time ago.
2002-10-25 22:08:44 +00:00
Bruce Momjian
3fd6d3260f
Change to fseeko(), per Philip.
2002-10-25 03:47:30 +00:00
Barry Lind
7ab25fffac
Patch submitted by Kris Jurka to fix arrayindexoutofbounds exception caused
...
by improper array initialization.
Modified Files:
jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2002-10-25 02:54:37 +00:00
Bruce Momjian
fc5c577e34
Allow fseeko in pg_dump only if fseeko() will work for all supported file
...
sizes.
2002-10-25 01:33:17 +00:00
Tom Lane
2908a838ac
Code review for connection timeout patch. Avoid unportable assumption
...
that tv_sec is signed; return a useful error message on timeout failure;
honor PGCONNECT_TIMEOUT environment variable in PQsetdbLogin; make code
obey documentation statement that timeout=0 means no timeout.
2002-10-24 23:35:55 +00:00
Tom Lane
bd19e8f604
Fix some places that were unportably assuming struct timeval's tv_sec
...
field is signed. Clean up casting.
2002-10-24 23:19:13 +00:00
Tom Lane
c3086c8f53
Function-call-style type coercions should be treated as explicit
...
coercions, not implicit ones. For example, 'select abstime(1035497293)'
should succeed because there is an explicit binary coercion from int4
to abstime.
2002-10-24 22:09:00 +00:00
Bruce Momjian
b171f5956e
Fix include for NetBSD.
2002-10-24 04:48:08 +00:00
Bruce Momjian
68214218be
Add prototype include to fseeko.c.
2002-10-24 04:33:46 +00:00
Bruce Momjian
4668d54f0b
Add fseeko for NetBSD.
2002-10-24 03:11:05 +00:00
Bruce Momjian
b093f8825d
Fix include files for new PageOutput call.
2002-10-24 01:33:50 +00:00
Bruce Momjian
f142b09151
Add fseeko/ftello prototypes for BSD/OS only to c.h.
2002-10-23 23:37:47 +00:00
Bruce Momjian
586510f774
Improve coding style of new function.
2002-10-23 21:39:27 +00:00
Bruce Momjian
6b9d496988
Make BSD/OS fseeko thread-safe.
2002-10-23 21:16:17 +00:00
Bruce Momjian
dc4d18e056
Add fseeko/ftello using fsetpos/fgetpos for BSD/OS.
2002-10-23 20:56:24 +00:00
Bruce Momjian
641b658c26
Page \h output and centralize psql paging code in PageOutput().
2002-10-23 19:23:57 +00:00
Tom Lane
30963fc200
Perform transaction cleanup operations in a less ad-hoc, more
...
principled order; in particular ensure that all shared resources
are released before we release transaction locks. The code used
to release locks before buffer pins, which might explain an ancient
note I have about a bufmgr assertion failure I'd seen once several
years ago, and been unable to reproduce since. (Theory: someone
trying to drop a relation might be able to reach FlushRelationBuffers
before the last user of the relation had gotten around to dropping
his buffer pins.)
2002-10-22 22:44:36 +00:00
Tom Lane
7305aa0171
create_index test must run after create_misc test.
2002-10-22 20:20:10 +00:00
Peter Eisentraut
1c23cf4371
Update for test changes.
2002-10-22 20:01:15 +00:00
Peter Eisentraut
7d970df60e
Add DLLIMPORT declarations required by contrib with asserts enabled.
2002-10-22 20:00:48 +00:00
Bruce Momjian
2b287020f4
Allow 8-byte off_t to properly pg_dump, from Philip Warner with mods by Bruce.
2002-10-22 19:15:23 +00:00
Tom Lane
200b151615
Fix places that were using IsTransactionBlock() as an (inadequate) check
...
that they'd get to commit immediately on finishing. There's now a
centralized routine PreventTransactionChain() that implements the
necessary tests.
2002-10-21 22:06:20 +00:00