summaryrefslogtreecommitdiff
path: root/src/interfaces
AgeCommit message (Collapse)Author
2004-08-19Don't use get_home_path so libpq doesn't pull path.c into the library.Bruce Momjian
2004-08-18Clean up some random departures from project's standard declaration style.Tom Lane
2004-08-18Add get_home_path() to use USERPROFILE on Win32 and HOME on Unix.Bruce Momjian
2004-08-17Chain on to SIGPIPE handler rather than just do action on default.Bruce Momjian
Always create thread-specific variable.
2004-08-17Fix linking problem when enabling thread safety on Darwin: uninitializedTom Lane
global variables are problematic on this platform. Simplest solution seems to be to initialize pthread key variable to 0. Also, rename this variable and check_sigpipe_handler to something involving "pq" to avoid gratuitous pollution of application namespace.
2004-08-17Move io.h include higher in the file so it doesn't conflict withBruce Momjian
rename/unlink defined later. Problem exists on MS VC. Andrew Francis
2004-08-15Specify SA_NOCLDSTOP when enabling SIGCHLD, per suggestion fromTom Lane
Oliver Jowett.
2004-08-11Fix broken parsing of CREATE TABLE AS (looks like a mis-sync with mainTom Lane
parser).
2004-08-11Add PQserverVersion() to libpq to provide more-convenient access toTom Lane
the server version number. This commit also removes bogus DOS line endings from libpqddll.def. Greg Sabino Mullane
2004-08-10Translation updatesPeter Eisentraut
2004-08-10Translation updatesPeter Eisentraut
2004-08-09Stamp libpq.rc with 8.0 version.Bruce Momjian
2004-08-04Label CVS tip as 8.0devel instead of 7.5devel. Adjust various commentsTom Lane
and documentation to reference 8.0 instead of 7.5.
2004-08-04Fix syntax error by adding a space.Bruce Momjian
2004-08-02Translation updatesPeter Eisentraut
2004-08-01Translation updates (zh_TW converted to UTF-8)Peter Eisentraut
2004-07-31>OK, if you look at the last few commits to interfaces/libpq/win32.mak,Bruce Momjian
>you will see changes for pg_config_paths.h and for thread safety. Can >you look at those changes, merge them into bcc.mak. There might be >other changes in there you want to add to bcc.mak too. > > > OK, having no M$ diff, I attach files src\interfaces\libpq\bcc32.mak and src\interfaces\libpq\win32.h Steve Holdoway
2004-07-29Translation updatePeter Eisentraut
2004-07-26SQL defines are only used in SQL space in Informix mode.Michael Meskes
2004-07-20Synced parser and keyword list.Michael Meskes
Fixed handling of cyclic defines.
2004-07-13Cause libpq and ecpg libraries to be built as proper shared librariesTom Lane
(.dylib format) on Mac OS X, while not messing up loadable modules for the backend (which are the same kind of animal as a shared library on every other platform, but not here). Also get the naming convention to match OS X practice, viz libFOO.version.so not libFOO.so.version. In support of that last, refactor code in Makefile.shlib to make it easier to have platform-specific shlib naming conventions. This patch is loosely based on the Fink project's current postgresql.patch. Tested by yours truly on OS X 10.3.4; does anyone have 10.2.* to check it on?
2004-07-12> win32 doesn't support a static initializer for mutexes, thus the firstBruce Momjian
> user must initialize the lock. The problem are concurrent "first" users > - the pthread_mutex_t initialization must be synchronized. > The current implementation is broken, the attached patches fixes that: > mutex_initlock is a spinlock. If the pthread_mutex_t mutex is not > initialized, then the spinlock is acquired, if the pthread_mutex_t is > initialized if it's not yet initialized and then the spinlock is dropped. Manfred Spraul
2004-07-12Back out thread fix until I get clarification.Bruce Momjian
2004-07-12win32 doesn't support a static initializer for mutexes, thus the firstBruce Momjian
user must initialize the lock. The problem are concurrent "first" users - the pthread_mutex_t initialization must be synchronized. The current implementation is broken, the attached patches fixes that: mutex_initlock is a spinlock. If the pthread_mutex_t mutex is not initialized, then the spinlock is acquired, if the pthread_mutex_t is initialized if it's not yet initialized and then the spinlock is dropped. Manfred Spraul
2004-07-05Added free() calls against memory leak in interval.c.Michael Meskes
2004-07-05- Fixed indicator in SET DESCRIPTOR.Michael Meskes
- Added special handling of descriptor header information. - Some code cleanup.
2004-07-04Made sure SET DESCRIPTOR accepts all data types including constants.Michael Meskes
2004-07-01Removed unused variable and added a typecast.Michael Meskes
2004-06-30Added SET DESCRIPTOR command.Michael Meskes
Note that this still has some bugs. The functionality is there though, it's just a matter of fixing the bugs now. Cleaned up error handling in preprocessor.
2004-06-28Arrays can be read as arrays or as character strings now.Michael Meskes
2004-06-27- Only use typedefs inside their scope.Michael Meskes
- Variables that are out of scope, were not removed all the time. - Make a varchar NULL set everything to 0 when not using indicators. - Synced parser.
2004-06-20Synced parser and keyword list.Michael Meskes
2004-06-19Fix Makefile syntax. Forgot to test this.Bruce Momjian
2004-06-19Add changes to support threads on Win32 native port at some point in the future.Bruce Momjian
2004-06-19Enable thread safety for win32.mak build of PostgreSQL.Bruce Momjian
Andreas Pflug
2004-06-17Added patch by ISHIDA Akio to allow indicators in execute statements.Michael Meskes
2004-06-11ECPG preprocessor for PostgreSQL 7.4.1, 7.4.2 doubles const,Bruce Momjian
volatile, static, and register keywords before variables, declared as VARCHAR. Sergey N. Yatskevich
2004-06-10Attached is a patch that takes care of the PATHSEP issue. I made a moreBruce Momjian
extensive change then what was suggested. I found the file path.c that contained a lot of "Unix/Windows" agnostic functions so I added a function there instead and removed the PATHSEP declaration in exec.c altogether. All to keep things from scattering all over the code. I also took the liberty of changing the name of the functions "first_path_sep" and "last_path_sep". Where I come from (and I'm apparently not alone given the former macro name PATHSEP), they should be called "first_dir_sep" and "last_dir_sep". The new function I introduced, that actually finds path separators, is now the "first_path_sep". The patch contains changes on all affected places of course. I also changed the documentation on dynamic_library_path to reflect the chagnes. Thomas Hallgren
2004-06-08Change PGETC to PGSYSCONFDIR and PGLOCALE to PGLOCALEDIR, per Peter.Bruce Momjian
2004-06-04The attached patch will create a dummy pg_config_paths.h. Additionally,Bruce Momjian
ENABLE_THREAD_SAFETY is supported by the makefile (but not by the sources, which need some rework) Andreas Pflug
2004-06-03init_ssl_system will return 0 on success and -1 on failure, which willBruce Momjian
be interpreted just the other way round in initialize_SSL. Andreas Pflug
2004-06-03Add new Win32 file with adjustments for recent code changes.Bruce Momjian
Andreas Pflug
2004-06-03Add PGETC (for pg_service.conf) and PGLOCALE (for locale dir)Bruce Momjian
environment variable processing to libpq. The patch also adds code to our client apps so we set the environment variable directly based on our binary location, unless it is already set. This will allow our applications to emit proper locale messages that are generated in libpq.
2004-05-31Suppress compile warnings on machines where the INT64CONST() decorationTom Lane
is actually needed. Per Oliver Elphick.
2004-05-31Too few parens for my taste in this macro.Tom Lane
2004-05-30Use the new List API function names throughout the backend, and disable theNeil Conway
list compatibility API by default. While doing this, I decided to keep the llast() macro around and introduce llast_int() and llast_oid() variants.
2004-05-26*) inet_(client|server)_(addr|port)() and necessary documentation forBruce Momjian
the four functions. > Also, please justify the temp-related changes. I was not aware that we > had any breakage there. patch-tmp-schema.txt contains the following bits: *) Changes pg_namespace_aclmask() so that the superuser is always able to create objects in the temp namespace. *) Changes pg_namespace_aclmask() so that if this is a temp namespace, objects are only allowed to be created in the temp namespace if the user has TEMP privs on the database. This encompasses all object creation, not just TEMP tables. *) InitTempTableNamespace() checks to see if the current user, not the session user, has access to create a temp namespace. The first two changes are necessary to support the third change. Now it's possible to revoke all temp table privs from non-super users and limiting all creation of temp tables/schemas via a function that's executed with elevated privs (security definer). Before this change, it was not possible to have a setuid function to create a temp table/schema if the session user had no TEMP privs. patch-area-path.txt contains: *) Can now determine the area of a closed path. patch-dfmgr.txt contains: *) Small tweak to add the library path that's being expanded. I was using $lib/foo.so and couldn't easily figure out what the error message, "invalid macro name in dynamic library path" meant without looking through the source code. With the path in there, at least I know where to start looking in my config file. Sean Chittenden
2004-05-26Recent commits added created files that weren't getting deleted byTom Lane
'make clean'.
2004-05-26This patch implement the TODO [ALTER DATABASE foo OWNER TO bar].Bruce Momjian
It was necessary to touch in grammar and create a new node to make home to the new syntax. The command is also supported in E CPG. Doc updates are attached too. Only superusers can change the owner of the database. New owners don't need any aditional privileges. Euler Taveira de Oliveira
2004-05-25Add FRONTEND to ecpglib.Bruce Momjian