summaryrefslogtreecommitdiff
path: root/src/include/pg_config.h.in
Commit message (Collapse)AuthorAgeFilesLines
* finite() no longer used; remove finite() platform-specificBruce Momjian2007-01-021-3/+0
| | | | infrastructure.
* Initial SQL/XML support: xml data type and initial set of functions.Peter Eisentraut2006-12-211-0/+6
|
* Revert to the pre-8.2 method of probing for libm, that is, alwaysTom Lane2006-11-061-0/+3
| | | | | | | | include it if it links properly. It seems too risky to assume that standard functions like pow() are not special-cased by the compiler. Per report from Andreas Lange that build fails on Solaris cc compiler with -fast. Even though we don't consider that a supported option, I'm worried that similar issues will arise with other compilers.
* On platforms that have getrlimit(RLIMIT_STACK), use it to ensure thatTom Lane2006-10-071-0/+6
| | | | | | | | max_stack_depth is not set to an unsafe value. This commit also provides configure-time checking for <sys/resource.h>, and cleans up some perhaps-unportable code associated with use of that include file and getrlimit().
* Second try at fixing libedit configuration for Bob Friesenhahn.Tom Lane2006-10-051-0/+3
| | | | | | Buildfarm results from 'gazelle' show that there are indeed libedit versions for which history.h is a needed header, even though it's apparently been dropped entirely in other versions. Grumble.
* Adjust configure's handling of libedit to not look for a history.h file.Tom Lane2006-10-041-3/+0
| | | | | | | | | Per Bob Friesenhahn's report, this file is not supplied by some versions of libedit, and even when it is supplied it seems to be just a link to readline.h, so we don't need to include it anyway. Also, ensure that we won't try to use a too-old version of Bison. The previous coding would bleat but then use it anyway; better to invoke the 'missing' script if any grammar files need to be rebuilt.
* Properly handle the case where strlcpy() exists in libc but isn'tTom Lane2006-10-021-0/+4
| | | | | declared in the system headers. Per report from Bruce than some BSDen are like this.
* Add strlcpy() to the set of functions supported by src/port/ when notTom Lane2006-09-271-0/+3
| | | | | available directly on the platform. Per discussion, this function is sufficiently widely recognized to be treated as standard.
* Revise OpenLDAP configuration and linking to work on more platformsTom Lane2006-09-091-0/+3
| | | | | than before. Albe Laurenz (but editorialized heavily by me, so if it doesn't work it's my fault).
* DTrace support, with a small initial set of probesPeter Eisentraut2006-07-241-0/+3
| | | | by Robert Lor
* Don't try to call posix_fadvise() unless <fcntl.h> supplies a declarationTom Lane2006-06-181-0/+4
| | | | | | | | for it. Hopefully will fix core dump evidenced by some buildfarm members since fadvise patch went in. The actual definition of the function is not ABI-compatible with compiler's default assumption in the absence of any declaration, so it's clearly unsafe to try to call it without seeing a declaration.
* Avoid duplicate definition of LOCALEDIR in pg_config.h, already definedBruce Momjian2006-05-231-3/+0
| | | | in port/pg_config_paths.h.
* Rearrange some configure.in comments for better readability.Tom Lane2006-04-291-1/+4
| | | | | Commit configure and pg_config.h.in, missed in last configure.in update.
* This patch adds native LDAP auth, for those platforms that don't haveBruce Momjian2006-03-061-0/+15
| | | | | | | PAM (such as Win32, but also unixen without PAM). On Unix, uses OpenLDAP. On win32, uses the builin WinLDAP library. Magnus Hagander
* Add PG_VERSION_NUM for use by 3rd party applications wanting to test theBruce Momjian2006-02-281-1/+4
| | | | backend version in C using > and < comparisons.
* Adjust probe for getaddrinfo to cope with macro-ized definitions, suchTom Lane2006-02-211-31/+1
| | | | as Tru64's. Per previous discussion.
* Move thread_test directory from /tools to /test so source-only tarballsBruce Momjian2006-02-041-21/+0
| | | | have the directory for the configure test.
* Allow MEMSET_LOOP_LIMIT to be set on a per-platform basis, and turn offBruce Momjian2006-02-031-0/+3
| | | | | | | MemSet on AIX by setting MEMSET_LOOP_LIMIT to zero. Add optimization to skip MemSet tests in MEMSET_LOOP_LIMIT == 0 case and just call memset() directly.
* Fix fsync code to test whether F_FULLFSYNC is available, instead ofTom Lane2006-01-171-0/+4
| | | | assuming it always is on Darwin. Per report from Neil Brandt.
* Remove BEOS port.Bruce Momjian2006-01-051-3/+0
|
* Make Win32 build use our port/snprintf.c routines, instead of dependingTom Lane2005-12-061-1/+1
| | | | | on libintl which may or may not provide what we need. Make a few marginal cleanups to ensure this works. Andrew Dunstan and Tom Lane.
* Convert the arithmetic for shared memory size calculation from 'int'Tom Lane2005-08-201-0/+3
| | | | | | | | | | | to 'Size' (that is, size_t), and install overflow detection checks in it. This allows us to remove the former arbitrary restrictions on NBuffers etc. It won't make any difference in a 32-bit machine, but in a 64-bit machine you could theoretically have terabytes of shared buffers. (How efficiently we could manage 'em remains to be seen.) Similarly, num_temp_buffers, work_mem, and maintenance_work_mem can be set above 2Gb on a 64-bit machine. Original patch from Koichi Suzuki, additional work by moi.
* Update to autoconf 2.59 as well as updates of related scriptsPeter Eisentraut2005-07-011-9/+0
|
* Remove support for Kerberos V4. It seems no one is using this, it hasNeil Conway2005-06-271-3/+0
| | | | | some security issues, and upstream has declared it "dead". Patch from Magnus Hagander, minor editorialization from Neil Conway.
* Allow kerberos name and username case sensitivity to be specified fromBruce Momjian2005-06-041-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Rename Rendezvous to Bonjour to match OS/X renaming.Bruce Momjian2005-05-151-2/+2
|
* Define snprintf() to call pg_snprintf() so our own snprintf-likeBruce Momjian2005-03-111-0/+3
| | | | | implementation doesn't export out via libpq and get used by a user application.
* Add code to find_my_exec() to resolve a symbolic link down to theTom Lane2004-11-061-0/+3
| | | | | | actual executable location. This allows people to continue to use setups where, eg, postmaster is symlinked from a convenient place. Per gripe from Josh Berkus.
* Here is a patch to fix win32 ssl builds. Summary of changes:Bruce Momjian2004-10-061-0/+6
| | | | | | | | | | | | | | | | | | | | | * 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
* Detect locale/encoding mismatch in initdb, or pick a suitable encodingPeter Eisentraut2004-07-141-0/+3
| | | | automatically if none was specified.
* Avoid including <sys/time.h> on platforms that don't have it.Tom Lane2004-06-241-0/+3
| | | | Per trouble report from Andreas Pflug.
* Fix strerror_r by checking return type from configure.Bruce Momjian2004-06-071-0/+3
|
* Use wide-character library routines, if available, for upper/lower/initcapTom Lane2004-05-221-0/+12
| | | | | | | | | | functions. This allows these functions to work correctly with Unicode and other multibyte encodings. Per prior discussion. Also, revert my earlier change to move installation path mashing from Makefile.global to configure. Turns out not to work well because configure script is working with unexpanded variables, and so fails to match in cases where it should match.
* Integrate src/timezone library for all platforms. There is more we canTom Lane2004-05-211-3/+0
| | | | | | and should do now that we control our own destiny for timezone handling, but this commit gets the bulk of the picayune diffs in place. Magnus Hagander and Tom Lane.
* Solve the 'Turkish problem' with undesirable locale behavior for caseTom Lane2004-05-071-3/+0
| | | | | | | | | | | | | conversion of basic ASCII letters. Remove all uses of strcasecmp and strncasecmp in favor of new functions pg_strcasecmp and pg_strncasecmp; remove most but not all direct uses of toupper and tolower in favor of pg_toupper and pg_tolower. These functions use the same notions of case folding already developed for identifier case conversion. I left the straight locale-based folding in place for situations where we are just manipulating user data and not trying to match it to built-in strings --- for example, the SQL upper() function is still locale dependent. Perhaps this will prove not to be what's wanted, but at the moment we can initdb and pass regression tests in Turkish locale.
* Second try at a portable unsetenv().Tom Lane2004-05-051-0/+3
|
* Rename to USE_PGTZ to match code.Bruce Momjian2004-04-301-3/+3
|
* Enable use of our own timezone library for Win32.Bruce Momjian2004-04-301-0/+3
|
* Add new auto-detection of thread flags.Bruce Momjian2004-04-231-9/+7
| | | | | | | Allow additional thread flags to be added via port templates. Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new configure script.
* Handle draft version of getpwuid_r() that accepts only four arguments.Bruce Momjian2004-03-201-0/+3
| | | | Backpatch to 7.4.X. Required for Solaris 7 & 8.
* Check and set thread-safe functions separately, rather than as a singleBruce Momjian2004-02-111-3/+9
| | | | | | | | | | variable. Remove thread locking for non-thread-safe functions, instead throw a compile error. Platforms will have to re-run tools/thread to record their thread safety.
* Properly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.Bruce Momjian2004-02-111-0/+3
| | | | Without this patch, no thread locking or *_r functions were being used.
* Add configure support for determining UINT64_FORMAT, the appropriateTom Lane2004-02-101-0/+4
| | | | snprintf format for uint64 items.
* Rename USE_THREADS to ENABLE_THREAD_SAFETY to avoid name clash with Perl.Peter Eisentraut2003-11-241-4/+4
| | | | | Fixes compilation failure with --enable-thread-safety --with-perl and Perl 5.6.1.
* autoconf/autoheader run.Bruce Momjian2003-09-131-0/+9
|
* Implement compiler #error if spinlock code not found, add configure flagBruce Momjian2003-09-121-0/+3
| | | | to bypass the error, --without-spinlocks.
* Changes for MinGW/WIN32:Bruce Momjian2003-09-071-0/+3
| | | | | | | | | o allow configure to see include/port/win32 include files o add matching Win32 accept() prototype o allow pg_id to compile with native Win32 API o fix invalide mbvalidate() function calls (existing bug) o allow /scripts to compile with native Win32 API o add win32.c to Win32 compiles (already in *.mak files)
* Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests toBruce Momjian2003-08-161-9/+0
| | | | configure to report if they are not found.
* Do not link in libwsock32 on non-win32 platforms. Improve grammarTom Lane2003-08-111-4/+4
| | | | of thread-safety comments.
* Don't assume that struct option is available just because we can find aTom Lane2003-08-071-0/+3
| | | | | | | getopt_long(). This is more or less the same problem as we saw earlier with getaddrinfo() and struct addrinfo, and for the same reason: random user-added libraries might contain the subroutine, but there's no guarantee we will find the matching header files.