summaryrefslogtreecommitdiff
path: root/src/backend/libpq
Commit message (Collapse)AuthorAgeFilesLines
* Clean up callers of AllocateFile and BasicOpenFile to ensure thatTom Lane2000-08-273-35/+31
| | | | | a reasonable error message (including the kernel errno message) is reported on any file open failure.
* Make the location of the Kerberos server key file run time configurablePeter Eisentraut2000-08-252-14/+10
| | | | | | | | | (rather than compile time). For libpq, even when Kerberos support is compiled in, the default user name should still fall back to geteuid() if it can't be determined via the Kerberos system. A couple of fixes for string type configuration parameters, now that there is one.
* Revise aggregate functions per earlier discussions in pghackers.Tom Lane2000-07-171-1/+3
| | | | | | | | | | | There's now only one transition value and transition function. NULL handling in aggregates is a lot cleaner. Also, use Numeric accumulators instead of integer accumulators for sum/avg on integer datatypes --- this avoids overflow at the cost of being a little slower. Implement VARIANCE() and STDDEV() aggregates in the standard backend. Also, enable new LIKE selectivity estimators by default. Unrelated change, but as long as I had to force initdb anyway...
* Remove a bunch of unused configure tests, in particular cases wherePeter Eisentraut2000-07-122-6/+4
| | | | | | | | | | * the result is not recorded anywhere * the result is not used anywhere * the result is only used in some places, whereas others have been getting away with it * the result is used improperly Also make command line options handling a little better (e.g., --disable-locale, while redundant, should really still *dis*able).
* typoPeter Eisentraut2000-07-091-2/+2
|
* Another round of those unportable config/build changes :-/Peter Eisentraut2000-07-091-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to build with OpenSSL out of the box. Fix thusly exposed bit rot. Although it compiles now, getting this to do something useful is left as an exercise. * Fix Kerberos options to defer checking for required libraries until all the other libraries are checked for. * Change default odbcinst.ini and krb5.srvtab path to PREFIX/etc. * Install work around for Autoconf's install-sh relative path anomaly. Get rid of old INSTL_*_OPTS variables, now that we don't need them anymore. * Use `gunzip -c' instead of g?zcat. Reportedly broke on AIX. * Look for only one of readline.h or readline/readline.h, not both. * Make check for PS_STRINGS cacheable. Don't test for the header files separately. * Disable fcntl(F_SETLK) test on Linux. * Substitute the standard GCC warnings set into CFLAGS in configure, don't add it on in Makefile.global. * Sweep through contrib tree to teach makefiles standard semantics. ... and in completely unrelated news: * Make postmaster.opts arbitrary options-aware. I still think we need to save the environment as well.
* Seems we need <errno.h> to be included explicitly now...Tom Lane2000-07-081-5/+7
|
* Remove long-dead support for invoking queries from dynamically loadedTom Lane2000-07-089-1962/+28
| | | | | | backend functions via backend PQexec(). The SPI interface has long been our only documented way to do this, and the backend pqexec/portal code is unused and suffering bit-rot. I'm putting it out of its misery.
* Fix misuse of StrNCpy to copy and add null to non-null-terminated data.Tom Lane2000-07-072-18/+14
| | | | | | | Does not work since it fetches one byte beyond the source data, and when the phase of the moon is wrong, the source data is smack up against the end of backend memory and you get SIGSEGV. Don't laugh, this is a fix for an actual user bug report.
* Update textin() and textout() to new fmgr style. This is just phaseTom Lane2000-07-051-5/+6
| | | | | one of updating the whole text datatype, but there are so dang many calls of these two routines that it seems worth a separate commit.
* Expand secondary password file feature, so that you can use thesePeter Eisentraut2000-07-043-25/+27
| | | | | | files to restrict the set of users that can connect to a database but can still use the pg_shadow password. (You just leave off the password field in the secondary file.)
* Make toast-table creation and deletion work somewhat reliably.Tom Lane2000-07-041-2/+6
| | | | | | | Don't go through pg_exec_query_dest(), but directly to the execution routines. Also, extend parameter lists so that there's no need to change the global setting of allowSystemTableMods, a hack that was certain to cause trouble in the event of any error.
* TOASTJan Wieck2000-07-031-2/+2
| | | | | | | | WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan
* Move global internal files to PGDATA/global.Peter Eisentraut2000-07-031-3/+3
|
* Move PGPORT envar handling to ResetAllOptions(). Improve long optionsPeter Eisentraut2000-07-031-2/+1
| | | | | parsing to not clobber the optarg string -- so that we can bring SetOptsFile() up to speed.
* Add SIGFPE to list of signals never to block. #ifdef all signals inTom Lane2000-06-291-3/+25
| | | | that list to cope with platforms that don't have them all.
* First phase of memory management rewrite (see backend/utils/mmgr/READMETom Lane2000-06-283-18/+69
| | | | | | | | | | | | | for details). It doesn't really do that much yet, since there are no short-term memory contexts in the executor, but the infrastructure is in place and long-term contexts are handled reasonably. A few long- standing bugs have been fixed, such as 'VACUUM; anything' in a single query string crashing. Also, out-of-memory is now considered a recoverable ERROR, not FATAL. Eliminate a large amount of crufty, now-dead code in and around memory management. Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and backend startup.
* Remove fmgrstamp-h business -- not needed and confusingPeter Eisentraut2000-06-171-7/+1
| | | | | Add options to configure to automatically build for Kerberos support; no more editing of make files.
* Big warnings cleanup for Solaris/GCC. Down to about 40 now, butPeter Eisentraut2000-06-141-3/+3
| | | | | | | | | | | we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew.
* Substituted new configure test for types of accept()Peter Eisentraut2000-06-112-6/+6
| | | | | | | | | | | Interfaced a lot of the custom tests to the config.cache, in the process made them separate macros and grouped them out into files. Made naming adjustments. Removed a couple of useless/unused configure tests. Disabled C++ by default. C++ is no more special than Perl, Python, and Tcl. And it breaks equally often. :(
* Another round of updates for new fmgr, mostly in the datetime code.Tom Lane2000-06-092-52/+85
|
* PGPORT envar was erroneously ignored by the backendPeter Eisentraut2000-06-061-14/+1
|
* New ps display code, works on more platforms.Peter Eisentraut2000-06-041-5/+4
| | | | | | Install a default configuration file. Clean up some funny business in the config file code.
* Remove NT-specific file open defines by defining our own open macros forBruce Momjian2000-06-025-50/+14
| | | | "rb" and "wb".
* The heralded `Grand Unified Configuration scheme' (GUC)Peter Eisentraut2000-05-311-10/+4
| | | | | | | | | | | | | That means you can now set your options in either or all of $PGDATA/configuration, some postmaster option (--enable-fsync=off), or set a SET command. The list of options is in backend/utils/misc/guc.c, documentation will be written post haste. pg_options is gone, so is that pq_geqo config file. Also removed were backend -K, -Q, and -T options (no longer applicable, although -d0 does the same as -Q). Added to configure an --enable-syslog option. changed all callers from TPRINTF to elog(DEBUG)
* Update pg_hba.conf with more examplesBruce Momjian2000-05-301-1/+1
|
* Update pg_hba.conf.sample with better examples and descriptionsBruce Momjian2000-05-301-85/+99
|
* Copy pg_ident.conf.sample into /lib directory. Rename USERAUTH toBruce Momjian2000-05-301-5/+5
| | | | AUTHTYPE in config file. Patch both branches.
* Third round of fmgr updates: eliminate calls using fmgr() andTom Lane2000-05-301-3/+5
| | | | | fmgr_faddr() in favor of new-style calls. Lots of cleanup of sloppy casts to use XXXGetDatum and DatumGetXXX ...
* Generated header files parse.h and fmgroids.h are now copied intoTom Lane2000-05-291-3/+1
| | | | | the src/include tree, so that -I backend is no longer necessary anywhere. Also, clean up some bit rot in contrib tree.
* First round of changes for new fmgr interface. fmgr itself and theTom Lane2000-05-282-23/+25
| | | | | | | key call sites are changed, but most called functions are still oldstyle. An exception is that the PL managers are updated (so, for example, NULL handling now behaves as expected in plperl and plpgsql functions). NOTE initdb is forced due to added column in pg_proc.
* Update kerberos patchBruce Momjian2000-05-271-99/+104
|
* Back out kerberos changes. Causes compile problems.Bruce Momjian2000-05-271-104/+99
|
* Patch for Kerberos V.Bruce Momjian2000-05-271-99/+104
| | | | | | | | | | | | Most (nearly all) of the work was done by David Wragg <dpw@doc.ic.ac.uk> He patched 6.5.3. I've updated it for 7.0RC5. It works for MIT kerberos 1.1.1 (and previously for 1.0.6 as well). I've got the patch against 6.5.3, plus kerberized RPMS. Mike Wyer <mw@doc.ic.ac.uk> || "Woof?"
* Clean up pg_hba.confBruce Momjian2000-05-271-8/+8
|
* Improve pg_hba.conf examplesBruce Momjian2000-05-271-6/+6
|
* After closing frontend socket, set MyProcPort->sock = -1 to ensure thatTom Lane2000-05-261-1/+5
| | | | | | | | | subsequent I/O attempts fail cleanly. I'm speculating about failure scenarios in which we do pq_close, then something in a proc_exit routine opens a file (re-using that kernel FD number), then something else fails and tries to write an elog message to the frontend ... message ends up in opened file, oops. No known examples of this but it seems like a potential hole.
* Remove calls to getprotobyname(), which we now know leaks memory onTom Lane2000-05-211-10/+3
| | | | | | some platforms --- and I also see that it is documented as not thread- safe on HPUX and possibly other platforms. No good reason not to just use IPPROTO_TCP constant from <netinet/in.h> instead.
* Add KEEPALIVE option to the socket of backend. This will automaticallyTatsuo Ishii2000-05-201-2/+8
| | | | terminate the backend that has no frontend anymore.
* Skip setsockopt(SO_REUSEADDR) for the Unix-domain postmaster socket onTom Lane2000-04-141-7/+1
| | | | | | all platforms, not just SCO. The operation is undefined for Unix-domain sockets anyway. It seems SCO is not the only platform that complains instead of treating the call as a no-op.
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-128-66/+74
|
* Several calls to StrNCpy incorrectly subtracted 1 from the length arg,Tom Lane2000-03-191-2/+2
| | | | leading to postmaster accepting args 1 shorter than it had room for.
* Fix a bunch of minor portability problems and maybe-bugs revealed byTom Lane2000-03-174-12/+12
| | | | | | running gcc and HP's cc with warnings cranked way up. Signed vs unsigned comparisons, routines declared static and then defined not-static, that kind of thing. Tedious, but perhaps useful...
* Add:Bruce Momjian2000-01-2612-24/+36
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* Removed MBFLAGS from makefiles since it's now done in include/config.h.Peter Eisentraut2000-01-191-5/+1
|
* In PQfn(), defend against too many args, and avoid dependencyTom Lane2000-01-121-7/+7
| | | | on FUNC_MAX_ARGS by using an appropriate fmgr() call.
* More cleanups. Still doesn't work.Bruce Momjian2000-01-111-3/+3
|
* More fixes, but still need +1 for FUNC_MAX_ARGSBruce Momjian2000-01-111-1/+3
|
* Make number of args to a function configurable.Bruce Momjian2000-01-101-6/+6
|
* Fix it's and its to be correct.Bruce Momjian2000-01-051-3/+3
|