Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Alain Toussaint
> Well, this is sort of what AOLserver does for you without any need for > middlemen. i agree that AolServer is good karma,i've been reading various docs on Aolserver since Philip Greenspun talked about it on linuxworld and i'm glad that there's some java support being coded for it (im my opinion

Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Mitch Vincent
I'm sure that this, if true, could certainly be the source of the problems I've seen... I can't comment on if PHP is completely threadsafe, I know that some of the modules (for lack of a better word) aren't, possible the ClibPDF library I'm using. I'll check into it. Thanks! -Mitch - Origin

[HACKERS] LIKE optimization and locale

2000-11-25 Thread Bruce Momjian
When locale is enabled, we have always had a problem using an index with: col LIKE 'abc%' We need to make this: col LIKE 'abc%' AND col >= "abc" AND col < "abd" but when locale is enabled, we can't be sure what letter is greater than 'c' in this case. Why don'

Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Don Baccus
At 10:00 PM 11/25/00 -0800, Mitch Vincent wrote: >I've tried quite a bit to use persistent connections with PHP (for over >a year) and always the scripts that I try to use them with behave crazy... >The last time I tried there were problems all over the place with PHP, >variables getting overw

Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Don Baccus
At 12:07 AM 11/26/00 -0500, Alain Toussaint wrote: >how about having a middle man between apache (or aolserver or any other >clients...) and PosgreSQL ?? > >that middleman could be configured to have 16 persistant connections,every >clients would deal with the middleman instead of going direct to

Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Alain Toussaint
> "I have all sorts of client apps, connecting in different ways, to > my server. Some of the clients are leaving their connections open, > but unused. How can I prevent running out of backends, and boot > the inactive users off?" how about having a middle man between apache (or aolserver or any

Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Mitch Vincent
I've tried quite a bit to use persistent connections with PHP (for over a year) and always the scripts that I try to use them with behave crazy... The last time I tried there were problems all over the place with PHP, variables getting overwritten, certain functions just totally breaking (date

[GENERAL] Re: [HACKERS] Indexing for geographic objects?

2000-11-25 Thread Tom Lane
Franck Martin <[EMAIL PROTECTED]> writes: > I would greatly appreciate if someone could guide me through the > methodology to build an index for a custom type or point me to some > readings where the algorithm is explained (web, book, etc...). The Programmer's Guide chapter "Interfacing Extension

Re: [HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Don Baccus
At 05:26 PM 11/25/00 -0700, Ron Chmara wrote: >Note: CC'd to Hackers, as this has wandered into deeper feature issues. > >Tom Lane wrote: >> GH <[EMAIL PROTECTED]> writes: >> > Do the "persistent-connected" Postgres backends ever timeout or die? >> No. A backend will sit patiently for the client

[HACKERS] Proposal for fixing IPC key assignment

2000-11-25 Thread Tom Lane
I looked over the last discussion of selecting IPC keys for shared memory and semaphores (pghackers thread "shmem_seq may be a bad idea" starting 4/30/00). There were some good ideas there, but the discussion still assumed that there would be only one postmaster running on a given port number on

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001125 18:54]: > > > Works. This is, umm, messy at best. > > Err, I lied, Marc adds the /usr/local/include/tcl8.3 and tk8.3 dirs to > > the --with-includes configure option. > > > > Still messy. > and it breaks now on 7.1devel sources... Here is what I is

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001125 18:40]: > * Larry Rosenman <[EMAIL PROTECTED]> [001125 18:34]: > > CONFIGURE_TCL= --with-tcl --with-tclconfig="${LOCALBASE}/lib/tcl8.3 ${LOCALBASE >}/lib/tk8.3" > > > > Works. This is, umm, messy at best. > Err, I lied, Marc adds the /usr/local/incl

Re: [HACKERS] Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files

2000-11-25 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Maybe we could name the socket file .s.PGSQL.port.pid and make > .s.PGSQL.port a symlink. Then you can find out whether the postmaster > that created the file is still running. Or just create a lockfile /tmp/.s.PGSQL.port#.lock, ie, same name as soc

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Larry Rosenman
* Larry Rosenman <[EMAIL PROTECTED]> [001125 18:34]: > CONFIGURE_TCL= --with-tcl --with-tclconfig="${LOCALBASE}/lib/tcl8.3 ${LOCALBASE >}/lib/tk8.3" > > Works. This is, umm, messy at best. Err, I lied, Marc adds the /usr/local/include/tcl8.3 and tk8.3 dirs to the --with-includes configure opt

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Larry Rosenman
* Peter Eisentraut <[EMAIL PROTECTED]> [001125 18:26]: > Larry Rosenman writes: > > > > > libpgtcl.h:19: tcl.h: No such file or directory > > > > > > How do you suggest going about finding the tcl.h file? > > it's in /usr/local/include/tcl8.3/ ... > > > > This will be a problem with TCL as ins

[HACKERS] Re: [NOVICE] Re: re : PHP and persistent connections

2000-11-25 Thread Ron Chmara
Note: CC'd to Hackers, as this has wandered into deeper feature issues. Tom Lane wrote: > GH <[EMAIL PROTECTED]> writes: > > Do the "persistent-connected" Postgres backends ever timeout or die? > No. A backend will sit patiently for the client to send it another > query or close the connection.

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Peter Eisentraut
Larry Rosenman writes: > > > libpgtcl.h:19: tcl.h: No such file or directory > > > > How do you suggest going about finding the tcl.h file? > it's in /usr/local/include/tcl8.3/ ... > > This will be a problem with TCL as installed by FreeBSD PORTS... > > (maybe configure ought to look for it,

Re: [HACKERS] Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.*files

2000-11-25 Thread Peter Eisentraut
Tom Lane writes: > There is a related issue on my todo list, though --- didn't we find out > awhile back that some older Linux kernels crash and burn if one attempts > to get an advisory lock on a socket file? (See thread 7/6/00) Were we > going to fix that, and if so how? Or will we just tell

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Larry Rosenman
* Peter Eisentraut <[EMAIL PROTECTED]> [001125 17:18]: > Larry Rosenman writes: > > > libpgtcl.h:19: tcl.h: No such file or directory > > How do you suggest going about finding the tcl.h file? it's in /usr/local/include/tcl8.3/ ... This will be a problem with TCL as installed by FreeBSD PORTS.

Re: [HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Peter Eisentraut
Larry Rosenman writes: > libpgtcl.h:19: tcl.h: No such file or directory How do you suggest going about finding the tcl.h file? -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Do local-enabled compiles have the LIKE optimization disabled always? No. They do a run-time check to see what locale is active. regards, tom lane

Re: [HACKERS] Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files

2000-11-25 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > * Tom Lane <[EMAIL PROTECTED]> [001125 16:37]: >> This story does indicate that we need a less fragile interlock against >> starting two postmasters on one database. I have to admit that it >> hadn't occurred to me that you could break the port-number

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Bruce Momjian
> I'm having a hard time believing Lamar's recollection, also. I wonder > if there could have been some other factor involved? One possible line > of thought: a non-locale-enabled compilation, installed to replace a > locale-enabled one, would behave rather inconsistently if run on the > same da

[HACKERS] Re: [GENERAL] Warning: Don't delete those /tmp/.PGSQL.* files

2000-11-25 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [001125 16:37]: > "Joel Burton" <[EMAIL PROTECTED]> writes: > > This story does indicate that we need a less fragile interlock against > starting two postmasters on one database. I have to admit that it > hadn't occurred to me that you could break the port-number i

[HACKERS] tcl/FreeBSD 4.2-STABLE, multiple TCL versions installed

2000-11-25 Thread Larry Rosenman
Trying to compile current sources using: ./configure --prefix=/home/ler/pg-test --enable-syslog \ --with-CXX --with-perl --enable-multibyte --enable-cassert \ --with-openssl --with-tcl \ --with-tclconfig=/usr/local/lib/tcl8.3 \ --with-tkconfig=/usr/local/lib/tk8.3

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Lamar Owen writes: >> Ok, let me repeat -- the '--enable-locale' setting will not affect the >> collation sequence problem on RedHat. If you set PostgreSQL to use >> locale, it uses it. If you configure PostgreSQL to not use locale, the >> collation

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Peter Eisentraut
Lamar Owen writes: > Ok, let me repeat -- the '--enable-locale' setting will not affect the > collation sequence problem on RedHat. If you set PostgreSQL to use > locale, it uses it. If you configure PostgreSQL to not use locale, the > collation set by LANG, LC_ALL, or LC_COLLATE is _STILL_ hon

Re: [HACKERS] 7.0.2 -> 7.0.3 problem

2000-11-25 Thread Tom Lane
"Mitch Vincent" <[EMAIL PROTECTED]> writes: > DEBUG: Data Base System is starting up at Sun Nov 12 18:20:04 2000 > FATAL 2: Read("/usr/local/pgsql/data/pg_control") failed: 2 > FATAL 2: Read("/usr/local/pgsql/data/pg_control") failed: 2 > Startup failed - abort > The only compilation change I

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Lamar Owen
Peter Eisentraut wrote: > Lamar Owen writes: > > Yes, I want to ignore their default. > If you want to do that then the infinitely better solution is to compile > without locale support in the first place. (Make the locale-enabled > server a separate package.) Alternatively, the locale of the

Re: [HACKERS] psql: anyone ever notice?

2000-11-25 Thread Peter Eisentraut
Vince Vielhaber writes: > $ psql -U > psql: option requires an argument -- U > Try -? for help. > $ psql -? > psql: No match. > $ It advertises '--help' now. (And yes, '--help' works everywhere.) -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/

Re: [HACKERS] Are pg_control contents really variable-length?

2000-11-25 Thread Vadim Mikheev
> In xlog.c, the declaration of struct ControlFileData says: > > /* > * MORE DATA FOLLOWS AT THE END OF THIS STRUCTURE - locations of data > * dirs > */ > > Is this comment accurate? I don't see any sign in the code of placing > extra data after the declared structure. If yo

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Peter Eisentraut
Tom Lane writes: > > I certainly don't like treating en_US specially, when in fact all locales > > are affected by this. > > Well, my thought was that another locale, say en_FR, would be far more > likely to be something that the system's user had explicitly chosen to > use at some point, IIRC,

Re: [HACKERS] OK, that's one LOCALE bug report too many...

2000-11-25 Thread Peter Eisentraut
Lamar Owen writes: > Yes, I want to ignore their default. If you want to do that then the infinitely better solution is to compile without locale support in the first place. (Make the locale-enabled server a separate package.) Alternatively, the locale of the postgres user to POSIX. > I can d

Re: [HACKERS] SECURITY: psql allows symlink games in /tmp

2000-11-25 Thread Bruce Momjian
> Looks like what I would have done if I knew C. > > The only issue remaining is a policy issue as to if psql should call an > editor in /tmp at all, considering the issues raised bye the recent joe > vulnerability, ie can we trust the editor not to do a crazy thing, like > not creating a similar

Re: [HACKERS] location of Unix socket

2000-11-25 Thread Peter Eisentraut
Bruce Momjian writes: > Done. I did not change PQunixsocket or the unixsocket PQconnectdb > connection option. Should they be changed too? They should be removed because PQhost does this now. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/