Alvaro Herrera
76c9ac8ebb
Translation updates.
2005-11-03 17:00:54 +00:00
Peter Eisentraut
9b0a164833
Translation updates
2005-10-29 00:41:37 +00:00
Bruce Momjian
819159709f
I have applied the following patch to document PQinitSSL() and
...
PQregisterThreadLock().
I also remove the crypt() mention in the libpq threading section and
added a single sentence in the client-auth manual page under crypt().
Crypt authentication is so old now that a separate paragraph about it
seemed unwise.
I also added a comment about our use of locking around pqGetpwuid().
2005-10-24 15:38:37 +00:00
Tom Lane
5aad28a104
Add missing PQinitSSL and PQregisterThreadLock to exports.txt.
2005-10-21 15:21:21 +00:00
Tom Lane
d330f1554d
Clean up libpq's pollution of application namespace by renaming the
...
exported routines of ip.c, md5.c, and fe-auth.c to begin with 'pg_'.
Also get rid of the vestigial fe_setauthsvc/fe_getauthsvc routines
altogether.
2005-10-17 16:24:20 +00:00
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
2005-10-15 02:49:52 +00:00
Bruce Momjian
a93bf4503f
Allow times of 24:00:00 to match rounding behavior:
...
regression=# select '23:59:59.9'::time(0);
time
----------
24:00:00
(1 row)
This is bad because:
regression=# select '24:00:00'::time(0);
ERROR: date/time field value out of range: "24:00:00"
The last example now works.
2005-10-14 11:47:57 +00:00
Peter Eisentraut
b473d7adc4
Translation update
2005-10-10 19:36:36 +00:00
Tom Lane
d7527540f2
<limits.h> is now needed here, for INT_MAX. Per Michael Fuhr.
2005-10-10 01:34:00 +00:00
Tom Lane
313ed1ed94
Fix (hopefully for the last time) problems with datetime values displaying
...
like '23:59:60' because of fractional-second roundoff problems. Trying
to control this upstream of the actual display code was hopeless; the right
way is to explicitly round fractional seconds in the display code and then
refigure the results if the fraction rounds up to 1. Per bug #1927 .
2005-10-09 17:21:47 +00:00
Tom Lane
18d0ca2d1b
Fix Kerberos authentication in wake of virtual-hosts changes --- need
...
to call krb5_sname_to_principal() always. Also, use krb_srvname rather
than the hardwired string 'postgres' as the appl_version string in the
krb5_sendauth/recvauth calls, to avoid breaking compatibility with PG
8.0. Magnus Hagander
2005-10-08 19:32:58 +00:00
Bruce Momjian
adeca513f7
Add spacing around operators.
2005-10-08 02:39:27 +00:00
Bruce Momjian
77d1de3c89
Minor parentheses cleanup.
2005-10-07 20:26:41 +00:00
Michael Meskes
a5fecda550
Also synced the ecpg lexer with the backend lexer.
2005-10-05 14:58:36 +00:00
Michael Meskes
ffa156bb5b
Somehow I missed some parser changes, so this commit comes pretty late. I just synced the parser of ecpg against the backend version, but still have to sync the lexer.
...
Also I fixed a bug in a bug fix I committed a few weeks ago. he check for a varchar pointer was incomplete.
2005-10-04 13:28:21 +00:00
Peter Eisentraut
7fe1f9a2c2
Don't need gettext calls around debug messages.
2005-09-26 17:49:09 +00:00
Tom Lane
303e089df5
Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.
2005-09-24 22:54:44 +00:00
Tom Lane
8889685555
Suppress signed-vs-unsigned-char warnings.
2005-09-24 17:53:28 +00:00
Bruce Momjian
1d734b79a3
Adjust bcc to work for thread changes.
2005-09-16 19:00:05 +00:00
Bruce Momjian
eab3e9b80d
This correction is required of nmake of Windows.
...
Hiroshi Saito
2005-09-16 18:58:48 +00:00
Michael Meskes
c959d370bf
Fixed transaction command handling to not ignore savepoints and to correctly check for errors.
2005-09-12 11:57:53 +00:00
Tom Lane
6b44d796c7
Fix misspelled error message.
2005-08-29 01:32:00 +00:00
Bruce Momjian
1a6fe83011
Allow Win32 libpq will use it's minimal pthread implementation, and ecpg
...
will use pthreadGC2.
Dave Page
2005-08-29 00:47:35 +00:00
Bruce Momjian
3b85fc3a52
Update pthread_self() on Win32 to return DWORD.
2005-08-28 21:42:28 +00:00
Bruce Momjian
8046c1c7e6
Use GetCurrentThreadId, per Magnus.
2005-08-28 18:49:01 +00:00
Bruce Momjian
0c172b215a
Add comment about pthread_self() cast.
2005-08-28 16:37:48 +00:00
Michael Meskes
f417ebf03a
- Check for NULL before checking whether argument is an array.
...
- Remove stary character from string quoting.
- Fixed check to report missing varchar pointer implementation.
2005-08-24 10:34:19 +00:00
Bruce Momjian
9cf18ee386
Add new file for win32 threading.
2005-08-23 21:11:22 +00:00
Bruce Momjian
43bf3a6bc6
The attached patch updates the thread test program to run stand-alone on
...
Windows. The test itself is bypassed in configure as discussed, and
libpq has been updated appropriately to allow it to build in thread-safe
mode.
Dave Page
2005-08-23 21:02:05 +00:00
Bruce Momjian
a970a8cb95
Back out incorrect commit.
2005-08-23 20:48:47 +00:00
Bruce Momjian
eef7e30cc1
Fix function name.
2005-08-23 20:45:11 +00:00
Bruce Momjian
9bddb5c8c7
Back out incorrect use of E'' escape addition.
2005-08-22 20:25:03 +00:00
Bruce Momjian
f810cfb291
Disable strtoul() ERANGE check on Win32, because it isn't thread safe,
...
and it isn't really required.
2005-08-13 01:34:30 +00:00
Tom Lane
8e9c52e427
EINTR return from connect() should be treated exactly the same as
...
EINPROGRESS, according to Florian Hars. I'm not completely convinced
but the spec does seem to read that way.
2005-08-11 22:53:41 +00:00
Bruce Momjian
d359facb05
Remove unintended file change.
2005-08-09 05:14:26 +00:00
Bruce Momjian
487b757b7a
Clarify wal_sync_method options in documentation.
2005-08-09 04:50:44 +00:00
Bruce Momjian
3758affc9b
More removal of unneeded parentheses.
2005-07-22 19:00:55 +00:00
Bruce Momjian
75e5aba7fe
Update date/time comments.
2005-07-22 05:08:26 +00:00
Bruce Momjian
d5f1e08c0c
Code spacing improvement, particularly *tm spacing.
2005-07-22 03:46:34 +00:00
Bruce Momjian
e9c44bd382
More comment update of time macros.
2005-07-21 20:37:21 +00:00
Bruce Momjian
e6b72d6af6
Update DAYS_PER_MONTH comment.
...
Add SECS_PER_YEAR and MINS_PER_HOUR macros.
2005-07-21 18:06:13 +00:00
Bruce Momjian
a0407f508a
Add comment about void* use in MemSet.
2005-07-21 15:16:30 +00:00
Bruce Momjian
b4bdab8105
Fix integer timestamp build for macro changes.
2005-07-21 05:18:26 +00:00
Bruce Momjian
aa0f6e8d06
Add comment marking non-exact time conversion macros.
2005-07-21 04:48:42 +00:00
Bruce Momjian
a536b2dd80
Add time/date macros for code clarity:
...
#define DAYS_PER_YEAR 365.25
#define MONTHS_PER_YEAR 12
#define DAYS_PER_MONTH 30
#define HOURS_PER_DAY 24
2005-07-21 03:56:25 +00:00
Bruce Momjian
db05f4a7eb
Add 'day' field to INTERVAL so 1 day interval can be distinguished from
...
24 hours. This is very helpful for daylight savings time:
select '2005-05-03 00:00:00 EST'::timestamp with time zone + '24 hours';
?column?
----------------------
2005-05-04 01:00:00-04
select '2005-05-03 00:00:00 EST'::timestamp with time zone + '1 day';
?column?
----------------------
2005-05-04 01:00:00-04
Michael Glaesemann
2005-07-20 16:42:32 +00:00
Tom Lane
faea3db958
Fix libpq memory leak during PQreset() --- closePGconn() was not
...
freeing all transient state of the PGconn object.
2005-07-13 15:25:55 +00:00
Bruce Momjian
7f0b690334
Improve comments for AdjustIntervalForTypmod.
...
Blank line adjustments.
2005-07-12 16:05:12 +00:00
Tom Lane
70f7da3e6e
Make libpq_gettext save and restore errno in a Windows-compatible way.
...
Also, back-patch fix into back branches.
2005-07-08 15:24:41 +00:00
Tom Lane
99382f4581
Save and restore errno across bindtextdomain call, per discussion.
2005-07-06 16:25:59 +00:00