- 08 Feb, 2001 1 commit
-
-
Tom Lane authored
any other client connections that may exist (which would only happen if another client is currently in the authentication cycle). This avoids wastage of open descriptors in a child. It might also explain peculiar behaviors like not closing connections when expected, since the kernel will probably not signal EOF as long as some other backend is randomly holding open a reference to the connection, even if the client went away long since ...
-
- 27 Jan, 2001 1 commit
-
-
Tom Lane authored
actually) to ensure that its file access time doesn't get old enough to tempt a /tmp directory cleaner to remove it. Still another reason we should never have put the sockets in /tmp in the first place ...
-
- 24 Jan, 2001 1 commit
-
-
Bruce Momjian authored
-
- 28 Dec, 2000 1 commit
-
-
Vadim B. Mikheev authored
-
- 20 Dec, 2000 1 commit
-
-
Tom Lane authored
observed by Inoue. Also, don't call ProcRemove() from postmaster if we have detected a backend crash --- too risky if shared memory is corrupted. It's not needed anyway, considering we are going to reinitialize shared memory and semaphores as soon as the last child is dead.
-
- 18 Dec, 2000 2 commits
-
-
Bruce Momjian authored
>> xlog.c : special case for beos to avoid 'link' which does not work yet >> beos/sem.c : implementation of new sem_ctl call (GETPID) and a new >sem_op >> flag (IPCNOWAIT) >> dynloader/beos.c : add a verification of symbol validity (seem that the >> loader sometime return OK with an invalid symbol) >> postmaster.c : add beos forking support for the new checkpoint process >> postgres.c : remove beos special case for getrusage >> beos.h : Correction of a bas definition of AF_UNIX, misc defnitions >> >> >> thanks >> >> >> cyril Cyril VELTER
-
Tom Lane authored
might change it. Experimentation shows that the signal handler call mechanism does not save/restore errno for you, at least not on Linux or HPUX, so this is definitely a real risk.
-
- 03 Dec, 2000 1 commit
-
-
Tom Lane authored
values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
-
- 30 Nov, 2000 1 commit
-
-
Tom Lane authored
I hope all the dust has settled out now ...
-
- 29 Nov, 2000 2 commits
-
-
Tom Lane authored
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 ...
-
Tom Lane authored
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.)
-
- 28 Nov, 2000 1 commit
-
-
Tom Lane authored
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.
-
- 27 Nov, 2000 1 commit
-
-
Hiroshi Inoue authored
to die.
-
- 25 Nov, 2000 3 commits
-
-
Tom Lane authored
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.
-
Peter Eisentraut authored
Accept --help even if no general long options support exists.
-
Bruce Momjian authored
-
- 21 Nov, 2000 1 commit
-
-
Peter Eisentraut authored
-
- 15 Nov, 2000 1 commit
-
-
Peter Eisentraut authored
-
- 14 Nov, 2000 3 commits
-
-
Tom Lane authored
cloned, rather than always cloning template1. Modify initdb to generate two identical databases rather than one, template0 and template1. Connections to template0 are disallowed, so that it will always remain in its virgin as-initdb'd state. pg_dumpall now dumps databases with restore commands that say CREATE DATABASE foo WITH TEMPLATE = template0. This allows proper behavior when there is user-added data in template1. initdb forced!
-
Peter Eisentraut authored
-
Bruce Momjian authored
-
- 13 Nov, 2000 2 commits
-
-
Bruce Momjian authored
leading slash to behave as a unix socket path.
-
Bruce Momjian authored
hosting product, on both shared and dedicated machines. We currently offer Oracle and MySQL, and it would be a nice middle-ground. However, as shipped, PostgreSQL lacks the following features we need that MySQL has: 1. The ability to listen only on a particular IP address. Each hosting customer has their own IP address, on which all of their servers (http, ftp, real media, etc.) run. 2. The ability to place the Unix-domain socket in a mode 700 directory. This allows us to automatically create an empty database, with an empty DBA password, for new or upgrading customers without having to interactively set a DBA password and communicate it to (or from) the customer. This in turn cuts down our install and upgrade times. 3. The ability to connect to the Unix-domain socket from within a change-rooted environment. We run CGI programs chrooted to the user's home directory, which is another reason why we need to be able to specify where the Unix-domain socket is, instead of /tmp. 4. The ability to, if run as root, open a pid file in /var/run as root, and then setuid to the desired user. (mysqld -u can almost do this; I had to patch it, too). The patch below fixes problem 1-3. I plan to address #4, also, but haven't done so yet. These diffs are big enough that they should give the PG development team something to think about in the meantime :-) Also, I'm about to leave for 2 weeks' vacation, so I thought I'd get out what I have, which works (for the problems it tackles), now. With these changes, we can set up and run PostgreSQL with scripts the same way we can with apache or proftpd or mysql. In summary, this patch makes the following enhancements: 1. Adds an environment variable PGUNIXSOCKET, analogous to MYSQL_UNIX_PORT, and command line options -k --unix-socket to the relevant programs. 2. Adds a -h option to postmaster to set the hostname or IP address to listen on instead of the default INADDR_ANY. 3. Extends some library interfaces to support the above. 4. Fixes a few memory leaks in PQconnectdb(). The default behavior is unchanged from stock 7.0.2; if you don't use any of these new features, they don't change the operation. David J. MacKenzie
-
- 12 Nov, 2000 1 commit
-
-
Tom Lane authored
that search loops only have to scan that far and not through all maxBackends entries. This eliminates a performance penalty for setting maxBackends much higher than the average number of active backends. Also, eliminate no-longer-used 'backend tag' concept. Remove setting of environment variables at backend start (except for CYR_RECODE), since none of them are being examined by the backend any longer.
-
- 09 Nov, 2000 1 commit
-
-
Vadim B. Mikheev authored
-
- 08 Nov, 2000 1 commit
-
-
Peter Eisentraut authored
-
- 06 Nov, 2000 1 commit
-
-
Peter Eisentraut authored
to work everywhere. Also, on FreeBSD you need to set the optreset variable to 1 before parsing the command line a second time with getopt().
-
- 04 Nov, 2000 1 commit
-
-
Peter Eisentraut authored
it to an absolute path.
-
- 01 Nov, 2000 1 commit
-
-
Peter Eisentraut authored
owner of unix socket.
-
- 28 Oct, 2000 1 commit
-
-
Bruce Momjian authored
-
- 25 Oct, 2000 1 commit
-
-
Tom Lane authored
Per discussion with Magnus Hagander.
-
- 24 Oct, 2000 1 commit
-
-
Tom Lane authored
for input, not just before.
-
- 21 Oct, 2000 1 commit
-
-
Vadim B. Mikheev authored
-
- 16 Oct, 2000 1 commit
-
-
Vadim B. Mikheev authored
relation OID is used as file node on creation but may be changed later if required. Regression Tests Approved (c) -:)))
-
- 11 Oct, 2000 2 commits
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- 08 Oct, 2000 1 commit
-
-
Tatsuo Ishii authored
This is equivalent to postmaster's -S option.
-
- 03 Oct, 2000 1 commit
-
-
Bruce Momjian authored
working on the VERY latest version of BeOS. I'm sure there will be alot of comments, but then if there weren't I'd be disappointed! Thanks for your continuing efforts to get this into your tree. Haven't bothered with the new files as they haven't changed. BTW Peter, the compiler is "broken" about the bool define and so on. I'm filing a bug report to try and get it addressed. Hopefully then we can tidy up the code a bit. I await the replies with interest :) David Reid
-
- 02 Oct, 2000 1 commit
-
-
Peter Eisentraut authored
-
- 06 Sep, 2000 1 commit
-
-
Peter Eisentraut authored
documentation.
-