summaryrefslogtreecommitdiff
path: root/src/interfaces
AgeCommit message (Collapse)Author
2005-07-22More removal of unneeded parentheses.Bruce Momjian
2005-07-22Update date/time comments.Bruce Momjian
2005-07-22Code spacing improvement, particularly *tm spacing.Bruce Momjian
2005-07-21More comment update of time macros.Bruce Momjian
2005-07-21Update DAYS_PER_MONTH comment.Bruce Momjian
Add SECS_PER_YEAR and MINS_PER_HOUR macros.
2005-07-21Add comment about void* use in MemSet.Bruce Momjian
2005-07-21Fix integer timestamp build for macro changes.Bruce Momjian
2005-07-21Add comment marking non-exact time conversion macros.Bruce Momjian
2005-07-21Add time/date macros for code clarity:Bruce Momjian
#define DAYS_PER_YEAR 365.25 #define MONTHS_PER_YEAR 12 #define DAYS_PER_MONTH 30 #define HOURS_PER_DAY 24
2005-07-20Add 'day' field to INTERVAL so 1 day interval can be distinguished fromBruce Momjian
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-13Fix libpq memory leak during PQreset() --- closePGconn() was notTom Lane
freeing all transient state of the PGconn object.
2005-07-12Improve comments for AdjustIntervalForTypmod.Bruce Momjian
Blank line adjustments.
2005-07-08Make libpq_gettext save and restore errno in a Windows-compatible way.Tom Lane
Also, back-patch fix into back branches.
2005-07-06Save and restore errno across bindtextdomain call, per discussion.Tom Lane
2005-07-04I have to admit that I got the case of the preprocessor symbol on amd64Bruce Momjian
wrong. __AMD64__ is not defined, __amd64__ is. Christof Petig
2005-07-02Add E'' to internally created SQL strings that contain backslashes.Bruce Momjian
Improve code clarity by using macros for E'' processing.
2005-07-01Adds some missing error handling to PGTYPESnumeric_div() in ecpg'sNeil Conway
pgtypeslib: (1) we need to check the return value of sub_abs() (2) we need to check the return value of 4 calls to digitbuf_alloc(). Per Coverity static analysis performed by EnterpriseDB.
2005-07-01Fix some minor infelicities in ecpg's pgtypeslib: (1) `pstr' must beNeil Conway
non-NULL in this function, so there is no need to check for it (2) we should check the return value of pgtypes_strdup(). Patch from Eric Astor at EnterpriseDB, with slight cleanup by myself, per a report from the Coverity tool.
2005-06-30Minor ecpg tweak: the return value of calloc() is guaranteed to be NULLNeil Conway
or zero-filled; therefore zero-filling it via memset() is pointless. (I think setting `errno' is probably a waste of cycles as well, but I haven't changed that.)
2005-06-30Warning cleanups for ecpg tests. Avoid doing pointer arithmetic on void *,Neil Conway
remove old-style function declarations, and mark a function "static". There are some remaining warnings, but this fixes most of them, anyway.
2005-06-30Fix ecpg's test/ Makefile for out-of-tree (vpath) builds.Neil Conway
2005-06-30Fix a theoretical memory leak in pg_password_sendauth(). If the firstNeil Conway
malloc() succeeded but the second failed, the buffer allocated by the first malloc() would be leaked. Fix this by allocating both buffers via a single malloc(), as suggested by Tom. Per Coverity static analysis performed by EnterpriseDB.
2005-06-27Remove support for Kerberos V4. It seems no one is using this, it hasNeil Conway
some security issues, and upstream has declared it "dead". Patch from Magnus Hagander, minor editorialization from Neil Conway.
2005-06-21Cause initdb to create a third standard database "postgres", whichTom Lane
unlike template0 and template1 does not have any special status in terms of backend functionality. However, all external utilities such as createuser and createdb now connect to "postgres" instead of template1, and the documentation is changed to encourage people to use "postgres" instead of template1 as a play area. This should fix some longstanding gotchas involving unexpected propagation of database objects by createdb (when you used template1 without understanding the implications), as well as ameliorating the problem that CREATE DATABASE is unhappy if anyone else is connected to template1. Patch by Dave Page, minor editing by Tom Lane. All per recent pghackers discussions.
2005-06-19Add comment about \# in bcc makefiles.Bruce Momjian
2005-06-19Cleanup for Win32 compile.Bruce Momjian
Andreas Pflug
2005-06-16Add \x hex support to ecpg strings. This just passes them to the backend.Bruce Momjian
2005-06-13Adjust lo_open() so that specifying INV_READ without INV_WRITE createsTom Lane
a descriptor that uses the current transaction snapshot, rather than SnapshotNow as it did before (and still does if INV_WRITE is set). This means pg_dump will now dump a consistent snapshot of large object contents, as it never could do before. Also, add a lo_create() function that is similar to lo_creat() but allows the desired OID of the large object to be specified. This will simplify pg_restore considerably (but I'll fix that in a separate commit).
2005-06-12This patch removes some old code from libpq that implements a URI-likeNeil Conway
syntax for database connection parameters. It has been inside an #ifdef NOT_USED block since 2001 or so and is marked as "broken", so I don't think it is likely to be rehabilitated any time soon.
2005-06-12libpq was not consistently checking for memory allocation failures. ThisNeil Conway
patch adds missing checks to the call sites of malloc(), strdup(), PQmakeEmptyPGresult(), pqResultAlloc(), and pqResultStrdup(), and updates the documentation. Per original report from Volkan Yazici about PQmakeEmptyPGresult() not checking for malloc() failure.
2005-06-10Remove unneeded variable test, per Tom.Bruce Momjian
2005-06-10Add the "PGPASSFILE" environment variable to specify to the passwordBruce Momjian
file. Andrew Dunstan
2005-06-09Defend against omitted paramLengths[] array in PQsendQueryParams.Tom Lane
Per Volkan Yazici.
2005-06-04Allow kerberos name and username case sensitivity to be specified fromBruce Momjian
postgresql.conf. --------------------------------------------------------------------------- Here's an updated version of the patch, with the following changes: 1) No longer uses "service name" as "application version". It's instead hardcoded as "postgres". It could be argued that this part should be backpatched to 8.0, but it doesn't make a big difference until you can start changing it with GUC / connection parameters. This change only affects kerberos 5, not 4. 2) Now downcases kerberos usernames when the client is running on win32. 3) Adds guc option for "krb_caseins_users" to make the server ignore case mismatch which is required by some KDCs such as Active Directory. Off by default, per discussion with Tom. This change only affects kerberos 5, not 4. 4) Updated so it doesn't conflict with the rendevouz/bonjour patch already in ;-) Magnus Hagander
2005-06-02- Fixed memory leak in ecpglib by adding some missing free() commands.Michael Meskes
- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
2005-05-27Display only 9 subsecond digits instead of 10 for time values, forBruce Momjian
consistency and to prevent rounding for days < 30. Also round off all trailing zeros, rather than leaving an even number of digits.
2005-05-27Back out part of patch that should be applied later.Bruce Momjian
2005-05-27Fix compile of entab to use stdarg.h. Clean up includes.Bruce Momjian
Marko Kreen
2005-05-26Use Abs() macro to replace ? :.Bruce Momjian
2005-05-26Back out:Bruce Momjian
Display only 9 not 10 digits of precision for timestamp values when using non-integer timestamps. This prevents the display of rounding errors for common values like days < 32.
2005-05-26Display only 9 not 10 digits of precision for timestamp values whenBruce Momjian
using non-integer timestamps. This prevents the display of rounding errors for common values like days < 32.
2005-05-25Add parentheses to macros when args are used in computations. WithoutBruce Momjian
them, the executation behavior could be unexpected.
2005-05-24Remove more extraneous parentheses in date/time functions.Bruce Momjian
2005-05-23More macro cleanups for date/time.Bruce Momjian
2005-05-23Add datetime macros for constants, for clarity:Bruce Momjian
#define SECS_PER_DAY 86400 #define USECS_PER_DAY INT64CONST(86400000000) #define USECS_PER_HOUR INT64CONST(3600000000) #define USECS_PER_MINUTE INT64CONST(60000000) #define USECS_PER_SEC INT64CONST(1000000)
2005-05-11Code cleanup: in C89, there is no point casting the first argument toNeil Conway
memset() or MemSet() to a char *. For one, memset()'s first argument is a void *, and further void * can be implicitly coerced to/from any other pointer type.
2005-05-05Add comments on WSAStartup usage.Bruce Momjian
2005-05-05Add WSACleanup() for Win32 socket cleanup.Bruce Momjian
Jason Erickson
2005-04-30Fix BCC to not define compiler location.Bruce Momjian
2005-04-29Improve cleanup from win32 client-only build.Bruce Momjian