summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-11-30Remove DISABLE_COMPLEX_MACRO definitions, since people seem to be gettingPeter Eisentraut
by without them. Don't check for preprocessor symbols from system header files in port include files, since those header files aren't included at this point.
2000-11-30Remove old regression test drivers.Peter Eisentraut
2000-11-30Make all commands that link a program look likePeter Eisentraut
$(CC) $(CFLAGS) $(LDFLAGS) <object files> <extra-libraries> $(LIBS) -o $@ This form seemed to be the most portable, readable, and logical, but in any case it's better than having a dozen different ones in the tree.
2000-11-30miscVadim B. Mikheev
2000-11-30Hope that this is valid localbuf.c versionVadim B. Mikheev
2000-11-30Remove VARLENA_FIXED_SIZE hack, which is irreversibly broken now thatTom Lane
both MULTIBYTE and TOAST prevent char(n) from being truly fixed-size. Simplify and speed up fastgetattr() and index_getattr() macros by eliminating special cases for attnum=1. It's just as fast to handle the first attribute by presetting its attcacheoff to zero; so do that instead when loading the tupledesc in relcache.c.
2000-11-30Remove remaining unixsocket-setting interfaces, since the host parameterPeter Eisentraut
does that. Disable URL-style connection parameter specification code, which doesn't work.
2000-11-30No more #ifdef XLOG.Vadim B. Mikheev
2000-11-30It seems some platforms declare kill(2) in signal.h not unistd.h.Tom Lane
2000-11-30XLOG stuff for sequences.Vadim B. Mikheev
CommitDelay in guc.c
2000-11-30Rearrange bufmgr header files so that buf_internals.h need not beTom Lane
included by everything that includes bufmgr.h --- it's supposed to be internals, after all, not part of the API! This fixes the conflict against FreeBSD headers reported by Rosenman, by making it unnecessary for s_lock.h to be included by plperl.c.
2000-11-30all options are allowed if not under postmaster:Vadim B. Mikheev
SetConfigOption(name, value, (IsUnderPostmaster) ? PGC_BACKEND : PGC_POSTMASTER);
2000-11-29Just noticed that with -S switch, MyProcPid is permanently wrong inTom Lane
postmaster, because it isn't updated after forking away from the terminal. Apparently it's not used anyplace in the postmaster ... but seems best to make it show the correct PID ...
2000-11-29Get rid of not-very-portable fcntl(F_SETLK) mechanism for locking the UnixTom Lane
socket file, in favor of having an ordinary lockfile beside the socket file. Clean up a few robustness problems in the lockfile code. If postmaster is going to reject a connection request based on database state, it will now tell you so before authentication exchange not after. (Of course, a failure after is still possible if conditions change meanwhile, but this makes life easier for a yet-to-be-written pg_ping utility.)
2000-11-28aclitemout() shouldn't coredump when it finds an ACL itemTom Lane
for a now-vanished group. Instead, display the numeric group ID, same as it does for vanished users.
2000-11-28Significant cleanups in SysV IPC handling (shared mem and semaphores).Tom Lane
IPC key assignment will now work correctly even when multiple postmasters are using same logical port number (which is possible given -k switch). There is only one shared-mem segment per postmaster now, not 3. Rip out broken code for non-TAS case in bufmgr and xlog, substitute a complete S_LOCK emulation using semaphores in spin.c. TAS and non-TAS logic is now exactly the same. When deadlock is detected, "Deadlock detected" is now the elog(ERROR) message, rather than a NOTICE that comes out before an unhelpful ERROR.
2000-11-28Remove PQunixsocket from dll file.Bruce Momjian
2000-11-28Remove PQunixsocket prototypeBruce Momjian
2000-11-28Remove PQunixsocket, per Peter's recommendation. PQhost shows the socket ↵Bruce Momjian
directory.
2000-11-27Make PQhost return socket path.Bruce Momjian
2000-11-27This patch allow pg_dump save name of primary key constraint (if primaryBruce Momjian
key exist). awn@bcs.zp.ua
2000-11-27Added pg_execute command behaving like spi_exec of PL/TclJan Wieck
Made pg_lo_read and pg_lo_write binary data safe when libpgtcl is compiled against Tcl version 8.0 or higher. Jan
2000-11-27Check for link(2) failure.Tom Lane
2000-11-27Not invoke CheckPoint process while postmaster is waiting for all backendsHiroshi Inoue
to die.
2000-11-27Pay attention to fgets() failure return.Tom Lane
2000-11-27Pay attention to fgets() failure return.Tom Lane
2000-11-27Be a little more careful with strtok().Tom Lane
2000-11-27Pay attention to fgets() failure return.Tom Lane
2000-11-27After going to the trouble of finding where psql lives, seems likeTom Lane
pg_ctl should invoke it from there, not use whatever random psql might (or might not) live in its $PATH.
2000-11-27Pay attention to failure returns from fgets() in all cases.Tom Lane
Avoid infinite loop prompting for password at stdin EOF.
2000-11-27Prevent simple_prompt() from locking up in a tight loop at stdin EOF.Tom Lane
2000-11-26 current cvs tree does build because of a small problem in ECPG. Here is aBruce Momjian
little patch which correct that. thanks cyril
2000-11-26Fix for inserting/copying longer multibyte strings into bpchar dataTatsuo Ishii
types.
2000-11-26Silence warningPeter Eisentraut
2000-11-26Unicode conversion fix suggested by Jan Varga...Tatsuo Ishii
-------------------------------------------------- Subject: Bug in unicode conversion ... From: Jan Varga <varga@utcru.sk> To: t-ishii@sra.co.jp Date: Sat, 18 Nov 2000 17:41:20 +0100 (CET) Hi, I tried this new feature in PostgreSQL. I found one bug. Script UCS_to_8859.pl skips input lines which 1. code <0x80 or 2. ucs <0x100 I think second one is not good idea because some codes in ISO8859-2 have ucs <0x100 (e.g. 0xE9 - 0x00E9) --------------------------------------------------
2000-11-25Make PGLC_setlocale() static, and document that it can't be used safelyTom Lane
for any other purpose than PGLC_localeconv()'s internal save/restore of locale settings. Fix cash.c to call PGLC_localeconv() rather than making a direct call to localeconv() --- the old way, if PGLC_localeconv() had already cached a locale result, it would be overwritten by the first cash_in or cash_out operation, leading to wrong-locale results later. Probably no demonstrable bug today, since we only appear to be looking at the LC_MONETARY results which should be the same anyway, but definitely a gotcha waiting to strike.
2000-11-25Move connection defines to miscadmin.h.Bruce Momjian
2000-11-25Correct portability-related errors in inet expected output. I'm notTom Lane
sure that broadcast('foo/32') means anything, but if it does, surely it ought to return foo, not 255.255.255.255.
2000-11-25Fix some portability bugs I'd introduced into inet/cidr code ---Tom Lane
shifting by the word width is not defined by ANSI C...
2000-11-25Store current LC_COLLATE and LC_CTYPE settings in pg_control during initdb;Tom Lane
re-adopt these settings at every postmaster or standalone-backend startup. This should fix problems with indexes becoming corrupt due to failure to provide consistent locale environment for postmaster at all times. Also, refuse to start up a non-locale-enabled compilation in a database originally initdb'd with a non-C locale. Suppress LIKE index optimization if locale is not "C" or "POSIX" (are there any other locales where it's safe?). Issue NOTICE during initdb if selected locale disables LIKE optimization.
2000-11-25Fix elog logic so that error messages displayed during initdb (orTom Lane
other standalone-backend situations) are not duplicated. Remove some dead code, add some comments, too.
2000-11-25Advertise --help (rather than '-?') as help option (problems with csh).Peter Eisentraut
Accept --help even if no general long options support exists.
2000-11-25Update pg_ctl ref page, help output, messages. Some repair to work betterPeter Eisentraut
with current postmaster.
2000-11-25Fix security problem with psql \e where temp file could be an existingBruce Momjian
symlink created by someone else, and therefore modifyable by someone else.
2000-11-25 here is a patch for formatting.c (to_char/timestampt()), for 7.1Bruce Momjian
it fixing Y,YY,YYY,YYYY conversion, the docs and regress tests update are included too. During the patch testing I found small bug in miscadmin.h in convertstr() declaration. Here it's fixed too. Thanks Karel
2000-11-25> > Looking some more, I found some other places that need a space (IBruce Momjian
> > suspect...), so here is an updated patch. > > This seems like the wrong way to go about it, because anytime anyone > changes any elog output anywhere, we'll risk another failure. If > syslog can't cope with empty lines, I think the right fix is for the > output-to-syslog routine to change the data just before sending --- > then there is only one place to fix. See the syslog output routine in > src/backend/utils/error/elog.c. Makes sense. Here's a new patch, now the output even looks better: Larry Rosenman
2000-11-25Allow jdbc to return proper server version numberBruce Momjian
Anders Bengtsson
2000-11-25Rename GUC name from unixsocket to unix_socket_directoryBruce Momjian
2000-11-25Clean up comments, organize code snippets added at different times intoTom Lane
a slightly less random order.
2000-11-24Print bit strings as B'...' when INSERT commands are dumped.Peter Eisentraut