Re: [HACKERS] Open items

2004-08-18 Thread Magnus Hagander
>> IIRC there was discussion about the location of the files >(Peter I think >> it was suggesting creating a new directory - I'll happily leave that >> part up to an eventual committer). >> >> Another discussion was about binary files in the tree (not >being source >> files - the source is a bi

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Magnus Hagander
>>>How about an environment variable that points to a .pgpass type file. >> >>You can do that today: point $HOME at some temp directory or other. >>AFAIR pg_dump doesn't make any other use of $HOME ... >> >>>Or we could even play games with PGPASSWORD - if it names an >existing file >>>that satis

Re: [HACKERS] Open items

2004-08-18 Thread Ross J. Reedstrom
On Wed, Aug 18, 2004 at 10:12:53PM -0400, Bruce Momjian wrote: > Magnus Hagander wrote: > > > > Another discussion was about binary files in the tree (not being source > > files - the source is a binary .AI file (AFAIK that's Adobe > > Illustrator)). The question was raised wether ImageMagick coul

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
Thanks Tom, Yes, this is beta1, not the CVS tip, so all is golden. Paul Tom Lane wrote: Paul Ramsey <[EMAIL PROTECTED]> writes: I started the database from "/home/pramsey/pgtest/8.0/bin" using "./pg_ctl start -D /home/pramsey/pgtest/8.0/data" Ah-hah ... and this is 8.0beta1, right, not anything l

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Tom Lane
Paul Ramsey <[EMAIL PROTECTED]> writes: > I started the database from "/home/pramsey/pgtest/8.0/bin" using > "./pg_ctl start -D /home/pramsey/pgtest/8.0/data" Ah-hah ... and this is 8.0beta1, right, not anything later? I fixed some problems associated with "." and ".." in the executable's path l

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
Things definately do not like to be run from within "bin". I added /home/pramsey/pgtest/8.0/bin to my PATH and then ran everything without a direct path reference: [EMAIL PROTECTED] 8.0]$ pg_ctl start -D /home/pramsey/pgtest/8.0/data postmaster starting LOG: database system was shut down at 200

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
Sounds like we are getting close. From strace: stat64("/home/pramsey/pgtest/8.0/bin/lib/postgresql/plpgsql", 0xbfffe480) = -1 ENOENT (No such file or directory) stat64("/home/pramsey/pgtest/8.0/bin/lib/postgresql/plpgsql.so", 0xbfffe480) = -1 ENOENT (No such file or directory) stat64("$libdir/plp

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
I am afraid it gets crazier... I put /home/pramsey/pgtest/8.0/bin on my $PATH Now: [EMAIL PROTECTED] 8.0]$ pg_config --pkglibdir /home/pramsey/pgtest/8.0/lib/postgresql Hm, correct. [EMAIL PROTECTED] 8.0]$ ./bin/pg_config --pkglibdir /home/pramsey/pgtest/8.0/./lib/postgresql Also correct, but getti

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Tom Lane
Paul Ramsey <[EMAIL PROTECTED]> writes: > ... It is the actual binaries that seem to not know > where $libdir is supposed to be. Where do they think it is? A useful way to check would be to strace the backend while you're executing "createlang" or another command that tries to load a dynamic lib

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Bruce Momjian
Ah, what is your $bindir? Is it /home/pramsey/pgtest/8.0/bin/postgresql? --- Paul Ramsey wrote: > Check this out! > > [EMAIL PROTECTED] bin]$ ./pg_config --pkglibdir > /home/pramsey/pgtest/8.0/bin/lib/postgresql >

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
Check this out! [EMAIL PROTECTED] bin]$ ./pg_config --pkglibdir /home/pramsey/pgtest/8.0/bin/lib/postgresql ^^^ And yet: ./port/pg_config_paths.h:#define PKGLIBDIR "/home/pramsey/pgtest/8.0/lib/postgresql" Could the problem be here? (port/path.c): /* * get_pkglib_pa

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Bruce Momjian
Tom Lane wrote: > Robert Treat <[EMAIL PROTECTED]> writes: > > If the location doesn't exist will postgresql try to create it? istm it could > > do this and if it fails then you are no worse off, but if it were to succeed > > you're that much better off. > > I think this would be fairly pointless

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Bruce Momjian
Robert Treat wrote: > On Wednesday 18 August 2004 21:39, you wrote: > > Christopher Kings-Lynne wrote: > > > > It is a little bit different because a schema, a table or a function > > > > are database application issues and are normally addressed by pg_dump > > > > and pg_restore, although tablespa

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Tom Lane
Robert Treat <[EMAIL PROTECTED]> writes: > If the location doesn't exist will postgresql try to create it? istm it could > do this and if it fails then you are no worse off, but if it were to succeed > you're that much better off. I think this would be fairly pointless. In most of the practical

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
The expansions in the build scripts all seem correct, and in fact, all the libraries are installed in the right place, both the system stuff (plpgsql.so) and the contrib stuff (libpostgis.so) ends up in /opt/foo/lib/postgresql. It is the actual binaries that seem to not know where $libdir is su

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Robert Treat
On Wednesday 18 August 2004 21:39, you wrote: > Christopher Kings-Lynne wrote: > > > It is a little bit different because a schema, a table or a function > > > are database application issues and are normally addressed by pg_dump > > > and pg_restore, although tablespaces are more an administration

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Andrej Czapszys
Tom Lane wrote: It's deprecated because it's insecure, on platforms where other users can see the environment variables passed to pg_dump (which apparently is quite a few variants of Unix). You wouldn't pass the password on the command line either ... Painful as .pgpass may be for an admin tool, I

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Bruce Momjian
Devrim GUNDUZ wrote: > > Hi, > > On Wed, 18 Aug 2004, Paul Ramsey wrote: > > > When installing PgSQL into a non-standard location (like /opt/foo) the > > configure script decides to install all the contrib libraries and > > plpglsq into /opt/foo/lib/postgresql. This would be fine, except that

Re: [HACKERS] contrib/earthdistance is empty in 7.3.7

2004-08-18 Thread Christopher Kings-Lynne
I'm trying to build RPMS for 7.3.7 but I have a problem. contrib/earthdistance seems empty, so configure exits with error: make[1]: Leaving directory `/usr/src/redhat/SOURCES/postgresql-7.3.7/contrib/dbsize' make[1]: Entering directory `/usr/src/redhat/SOURCES/postgresql-7.3.7/contrib/earthdist

Re: [HACKERS] $libdir and 8.0

2004-08-18 Thread Devrim GUNDUZ
Hi, On Wed, 18 Aug 2004, Paul Ramsey wrote: > When installing PgSQL into a non-standard location (like /opt/foo) the > configure script decides to install all the contrib libraries and > plpglsq into /opt/foo/lib/postgresql. This would be fine, except that > backend does not recognize this d

[HACKERS] $libdir and 8.0

2004-08-18 Thread Paul Ramsey
Short bug report: When installing PgSQL into a non-standard location (like /opt/foo) the configure script decides to install all the contrib libraries and plpglsq into /opt/foo/lib/postgresql. This would be fine, except that backend does not recognize this directory as a place to be searched fo

[HACKERS] contrib/earthdistance is empty in 7.3.7

2004-08-18 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to build RPMS for 7.3.7 but I have a problem. contrib/earthdistance seems empty, so configure exits with error: make[1]: Leaving directory `/usr/src/redhat/SOURCES/postgresql-7.3.7/contrib/dbsize' make[1]: Entering directory `/usr/

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Bruce Momjian
Added to open items: * Fix Solaris for single-host netmasks in pg_hba.conf, use CIDR? --- Andrew Dunstan wrote: > > > Tom Lane wrote: > > >Andrew Dunstan <[EMAIL PROTECTED]> writes: > > > > > >>>Seems unlikely

Re: [HACKERS] Open items

2004-08-18 Thread Alvaro Herrera
On Wed, Aug 18, 2004 at 10:12:53PM -0400, Bruce Momjian wrote: > These binary files are almost never going to be changed so I see no > problem with adding them to CVS, and putting whatever source we can into > CVS. If we can't we just document how we created the binary. Can you > export the imag

Re: [HACKERS] COPY with column headings

2004-08-18 Thread Bruce Momjian
Added to TODO: > o Allow COPY to optionally include column headings as the first I know Tom didn't like it but there were others who did. --- Andrew Dunstan wrote: > > > Tom Lane wrote: > > >Bruce Momjian <[EMAIL

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: How about an environment variable that points to a .pgpass type file. You can do that today: point $HOME at some temp directory or other. AFAIR pg_dump doesn't make any other use of $HOME ... Or we could even play games with PGP

Re: [HACKERS] Open items

2004-08-18 Thread Bruce Momjian
Magnus Hagander wrote: > >>win32 binary version stamps > > > >Magnus has just gone on holiday for a couple of weeks but > >before he left > >he did tell me he'd submitted what was hopefully the final patch for > >this. I haven't seen it yet though - is it stuck in the queue? > > I did, and I

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > How about an environment variable that points to a .pgpass type file. You can do that today: point $HOME at some temp directory or other. AFAIR pg_dump doesn't make any other use of $HOME ... > Or we could even play games with PGPASSWORD - if it names

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Andrew Dunstan
Tom Lane wrote: Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: After some tests, I found that using the PGPASSWORD environment variable will do the job. I'm a bit irritated that it's marked "deprecated" in the docs, the .pgpass solution isn't a good one for tool managed passwords.

[HACKERS] More fun with dropped columns

2004-08-18 Thread Tom Lane
I've just noticed that there are some severe bugs in the column-aliasing feature in the presence of dropped columns. For instance regression=# create table t1(f1 int, f2 int, f3 int); CREATE TABLE regression=# select * from t1 as t(a,b); a | b | f3-- okay, as expe

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Christopher Kings-Lynne
It's deprecated because it's insecure, on platforms where other users can see the environment variables passed to pg_dump (which apparently is quite a few variants of Unix). You wouldn't pass the password on the command line either ... Painful as .pgpass may be for an admin tool, I do not know of

Re: [HACKERS] pg_dump 'die_on_errors'

2004-08-18 Thread Bruce Momjian
Your patch has been added to the PostgreSQL unapplied patches list at: http://momjian.postgresql.org/cgi-bin/pgpatches It will be applied as soon as one of the PostgreSQL committers reviews and approves it. --- Ph

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: >> After some tests, I found that using the PGPASSWORD environment variable >> will do the job. I'm a bit irritated that it's marked "deprecated" in >> the docs, the .pgpass solution isn't a good one for tool managed passwords. > I didn't notic

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Bruce Momjian
Christopher Kings-Lynne wrote: > > It is a little bit different because a schema, a table or a function are > > database application issues and are normally addressed by pg_dump and > > pg_restore, although tablespaces are more an administration issue wrt disk > > layout and the like, which are lik

Re: [HACKERS] Tablespace and cpu costs

2004-08-18 Thread Christopher Kings-Lynne
The first is to add a parameter to CREATE TABLESPACE and ALTER TABLESPACE called RANDOMPAGECOST (or something like that) which allows users to set the random page cost for a given tablespace. I'm undecided as to whether they should be able to set the sequential scan cost. That seems reasonable too

Re: [HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Christopher Kings-Lynne
While fixing the gui for pg_dump and pg_restore, I painfully noticed there's no option for the password. After some tests, I found that using the PGPASSWORD environment variable will do the job. I'm a bit irritated that it's marked "deprecated" in the docs, the .pgpass solution isn't a good one

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Christopher Kings-Lynne
It is a little bit different because a schema, a table or a function are database application issues and are normally addressed by pg_dump and pg_restore, although tablespaces are more an administration issue wrt disk layout and the like, which are likely to be different from one machine to another

Re: [HACKERS] Tablespace and cpu costs

2004-08-18 Thread Gavin Sherry
On Wed, 18 Aug 2004, Gaetano Mendola wrote: > Gavin Sherry wrote: > > > On Wed, 18 Aug 2004, Gaetano Mendola wrote: > >>-BEGIN PGP SIGNED MESSAGE- > >>Hash: SHA1 > >> > >>Hi all, > >>now that we have the tablespace support don't you think that > >>each tablespace needs his own costs instea

Re: [HACKERS] NOT LOGGED options (was Point in Time Recovery )

2004-08-18 Thread Simon Riggs
> Manfred Spraul > [EMAIL PROTECTED] wrote: > > >>Tom Lane wrote > >> > >> > >>>NOT LOGGED options on CREATE INDEX and COPY, to allow users to take > >>>advantage of the no logging optimization without turning off > PITR system > >>>wide. (Just as this is possible in Oracle and Teradata). > >>> > >

[HACKERS] PGPASSWORD and client tools

2004-08-18 Thread Andreas Pflug
While fixing the gui for pg_dump and pg_restore, I painfully noticed there's no option for the password. After some tests, I found that using the PGPASSWORD environment variable will do the job. I'm a bit irritated that it's marked "deprecated" in the docs, the .pgpass solution isn't a good one

Re: [HACKERS] gcc: unrecognized option `-pthreads'

2004-08-18 Thread Bruce Momjian
Joe Conway wrote: > I'm seeing "gcc: unrecognized option `-pthreads'" over and over when > building from cvs tip. > > # pg_config --configure > '--prefix=/usr/local/pgsql-8.0' '--with-pgport=55435' '--with-perl' > '--with-tcl' '--with-tclconfig=/usr/lib' '--without-tk' '--with-python' > '--enab

Re: [HACKERS] initdb failure on win32

2004-08-18 Thread Bruce Momjian
Magnus Hagander wrote: > > > There is a fixed buffer of 1024 bytes. I have a feeling > > ythat one has > > > to be changed to dynamic. > > > > > You're quite right. The 'InfoBufferSize' denotes 1122 bytes > > after this call. > > > > if(!GetTokenInformation(AccessToken,TokenGroups,InfoBuffer,1

Re: [HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > I need to call canonicalize_path() in the macro. > > There is only one use of get_home_path in libpq. Lose it and do > a direct getenv(HOMEDIR). You do not really need to do a > canonicalize_path there; it'd be sufficient to insert

Re: stop the presses (Re: [HACKERS] 7.4.4 packaged ...)

2004-08-18 Thread Marc G. Fournier
New package has been built for 7.4.5 ... just have 7.2 left to package up ... On Tue, 17 Aug 2004, Tom Lane wrote: "Marc G. Fournier" <[EMAIL PROTECTED]> writes: let me know when you are ready ... I've committed the patch itself. I have to leave for a few hours, but I can update the release note

Re: [HACKERS] psql table comments?

2004-08-18 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: I have just noticed that \d+ tablename doesn't show the table comment/description - should it? Is this a TODO? \dt+ tablename shows this, in what is probably a more convenient format than \d+ would be able to use. Not if you

[HACKERS] gcc: unrecognized option `-pthreads'

2004-08-18 Thread Joe Conway
I'm seeing "gcc: unrecognized option `-pthreads'" over and over when building from cvs tip. # pg_config --configure '--prefix=/usr/local/pgsql-8.0' '--with-pgport=55435' '--with-perl' '--with-tcl' '--with-tclconfig=/usr/lib' '--without-tk' '--with-python' '--enable-nls' '--enable-debug' '--enab

Re: [HACKERS] psql table comments?

2004-08-18 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > I have just noticed that \d+ tablename doesn't show the table > comment/description - should it? Is this a TODO? \dt+ tablename shows this, in what is probably a more convenient format than \d+ would be able to use. The \d printout is already awfully

Re: [HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I need to call canonicalize_path() in the macro. There is only one use of get_home_path in libpq. Lose it and do a direct getenv(HOMEDIR). You do not really need to do a canonicalize_path there; it'd be sufficient to insert the appropriate directory se

[HACKERS] psql table comments?

2004-08-18 Thread Andrew Dunstan
I have just noticed that \d+ tablename doesn't show the table comment/description - should it? Is this a TODO? cheers andrew ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmail

Re: [HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Bruce Momjian
Bruce Momjian wrote: > Tom Lane wrote: > > Karel Zak <[EMAIL PROTECTED]> writes: > > > I tried compile some program with latest CVS libpq: > > > > > gcc -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include/httpd > > > -Wall -I/usr/lib/postgresql/include -DLIBAPMOM_FUNCALL=1 -Wall > > > -Wmis

Re: [HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Bruce Momjian
Tom Lane wrote: > Karel Zak <[EMAIL PROTECTED]> writes: > > I tried compile some program with latest CVS libpq: > > > gcc -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include/httpd > > -Wall -I/usr/lib/postgresql/include -DLIBAPMOM_FUNCALL=1 -Wall > > -Wmissing-prototypes -Wmissing-declarati

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf

2004-08-18 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Seems unlikely. I suppose you could argue that we shouldn't be using getaddrinfo on the netmask field at all; there's certainly not any value in doing a DNS lookup on it, for instance. Maybe we should go back to using plain ol' inet_a

Re: [HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Tom Lane
Karel Zak <[EMAIL PROTECTED]> writes: > I tried compile some program with latest CVS libpq: > gcc -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include/httpd > -Wall -I/usr/lib/postgresql/include -DLIBAPMOM_FUNCALL=1 -Wall > -Wmissing-prototypes -Wmissing-declarations `xml2-config --cflags` >

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf

2004-08-18 Thread Andrew Dunstan
Bruce Momjian wrote: Uh, we are passing 255.255.255.255 to getaddrinfo()? Why would we do that? Any non-CIDR netmask is passed to getaddrinfo to turn it into a binary mask. see src/backend/libpq/hba.c For CIDR masks we make the binary version ourselves. cheers andrew --

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: >> Seems unlikely. I suppose you could argue that we shouldn't be using >> getaddrinfo on the netmask field at all; there's certainly not any value >> in doing a DNS lookup on it, for instance. Maybe we should go back to >> using plain ol' inet_aton for

Re: [HACKERS] NOT LOGGED options (was Point in Time Recovery )

2004-08-18 Thread Manfred Spraul
[EMAIL PROTECTED] wrote: Tom Lane wrote NOT LOGGED options on CREATE INDEX and COPY, to allow users to take advantage of the no logging optimization without turning off PITR system wide. (Just as this is possible in Oracle and Teradata). Isn't this in direct conflict with your opinion a

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf

2004-08-18 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: I thought the report was that *only* 255.255.255.255 failed. The question is why? The impression I got was that some internal subroutine of getaddrinfo had a broken error-handling convention (ie, "return a numeric address value or

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Andrew Dunstan
Joe Conway wrote: Tom Lane wrote: Well, *Marc* is working on including less stuff; the rest of us don't necessarily agree. In particular I've got to re-incorporate any major pieces that get removed from the core distribution, since people expect to find those in the RPM set. (In principle I supp

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Bruce Momjian
Tom Lane wrote: > Andrew Dunstan <[EMAIL PROTECTED]> writes: > > I thought the report was that *only* 255.255.255.255 failed. The > > question is why? > > The impression I got was that some internal subroutine of getaddrinfo > had a broken error-handling convention (ie, "return a numeric address

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > On that, note that I specifically removed jdbc and tcl options from the > spec file because the 8.0.0 release notes said they were removed from > the distribution. I suppose at lease jdbc should be put back? It didn't > seem right to include the 7.4 jdbc

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Joe Conway
Tom Lane wrote: Well, *Marc* is working on including less stuff; the rest of us don't necessarily agree. In particular I've got to re-incorporate any major pieces that get removed from the core distribution, since people expect to find those in the RPM set. (In principle I suppose they could be h

[HACKERS] Automated Testing with PostgreSQL-8.0.0beta1

2004-08-18 Thread markw
The OSDL provides two services to aid in development processes: The Patch Lifecycle Manager (PLM) and the Scalable Test Platform (STP). Recent releases allow software other than the linux kernel to be actively tested. PLM (http://www.osdl.org/plm-cgi/plm) can be used for storing a series of patch

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Tom Lane
Andrew Dunstan <[EMAIL PROTECTED]> writes: > I thought the report was that *only* 255.255.255.255 failed. The > question is why? The impression I got was that some internal subroutine of getaddrinfo had a broken error-handling convention (ie, "return a numeric address value or -1 on error"). > A

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> In the PG case a >> single specfile currently aggregates the core server, jdbc, and >> pygresql ... and I'm getting pressure to include more stuff. > How does that compute, considering that everyone else appears to be > working on

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf

2004-08-18 Thread Andrew Dunstan
Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian <[EMAIL PROTECTED]> writes: Agreed, but from a clarity perspective, are we better moving to the CIDR format for hostnames in pg_hba.conf anyway? Possibly --- it'd be easier to sell on that argument anyway ;-) s/hostnames/netmas

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Peter Eisentraut
Tom Lane wrote: > In the PG case a > single specfile currently aggregates the core server, jdbc, and > pygresql ... and I'm getting pressure to include more stuff. How does that compute, considering that everyone else appears to be working on including less stuff? > The init script is a differen

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > True, but at least it would work. Are they saying the masks don't work > at all? Why haven't we heard this before? The specific case of mask = all ones has got a problem (and I think there are some other conditions involved too). We have heard reports

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Gaetano Mendola
Tom Lane wrote: Gaetano Mendola <[EMAIL PROTECTED]> writes: BTW I have bitten recently on the attempt of change the default port. I did it as usual changing it in postgresql.conf but that parameter is overriden by: PGPORT=5432 present on the start up script. There is any reason to still pa

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Agreed, but from a clarity perspective, are we better moving to the CIDR > > format for hostnames in pg_hba.conf anyway? > > Possibly --- it'd be easier to sell on that argument anyway ;-) > > > Also, I think we would accept a patch

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Agreed, but from a clarity perspective, are we better moving to the CIDR > format for hostnames in pg_hba.conf anyway? Possibly --- it'd be easier to sell on that argument anyway ;-) > Also, I think we would accept a patch that modified pg_hba.conf for

Re: [HACKERS] 7.4.3 & 8.0.0beta1 + Solaris 9: default pg_hba.conf breaks

2004-08-18 Thread Bruce Momjian
Tom Lane wrote: > Oliver Jowett <[EMAIL PROTECTED]> writes: > > Since the default config now allows TCP/IP connections from localhost, > > maybe we should tweak the default pg_hba.conf to work around this > > problem? (e.g. use the /32 syntax which works ok) > > Maybe we should press Sun to fix

Re: [HACKERS] Tablespace and cpu costs

2004-08-18 Thread Gaetano Mendola
Gavin Sherry wrote: On Wed, 18 Aug 2004, Gaetano Mendola wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, now that we have the tablespace support don't you think that each tablespace needs his own costs instead of a system wide one ? I searched in the archives and on the TODO list witho

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Tom Lane
Gaetano Mendola <[EMAIL PROTECTED]> writes: > BTW I have bitten recently on the attempt of change the default port. > I did it as usual changing it in postgresql.conf but that parameter > is overriden by: > PGPORT=5432 > present on the start up script. > There is any reason to still pass thi

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Isn't there a way to generate this automatically? Why isn't the .spec > file (and the debian directory, for that matter) part of the source > tree? Can't speak for Debian, but Red Hat at least would not use such a spec file anyway. RH's procedures inv

Re: [HACKERS] initdb failure on win32

2004-08-18 Thread Magnus Hagander
> > There is a fixed buffer of 1024 bytes. I have a feeling > ythat one has > > to be changed to dynamic. > > > You're quite right. The 'InfoBufferSize' denotes 1122 bytes > after this call. > > if(!GetTokenInformation(AccessToken,TokenGroups,InfoBuffer,102 > 4,&InfoBufferSize)) Ah. Your st

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Fabien COELHO
Dear Robert, > Chris, help me understand this will you? I'm not Chris, but it looks like Robert may eventually share my concerns, so I'm happy not to be alone on this one ;-) > On my production system I have a few very large tables I want to move > into their own tablespace so I can but them a

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Robert Treat
On Wednesday 18 August 2004 04:39, Christopher Kings-Lynne wrote: > > shell> pg_dump coelho | grep TABLESPACE > > CREATE SCHEMA test AUTHORIZATION coelho TABLESPACE test; > > > > "TABLESPACE" appears in a basic pg_dump SQL output. If the test > > tablespace does not exist, the command will fail, an

[HACKERS] 8.0 libpq: missing get_home_path()

2004-08-18 Thread Karel Zak
Hi, I tried compile some program with latest CVS libpq: gcc -O2 -O2 -g -pipe -march=i386 -mcpu=i686 -I/usr/include/httpd -Wall -I/usr/lib/postgresql/include -DLIBAPMOM_FUNCALL=1 -Wall -Wmissing-prototypes -Wmissing-declarations `xml2-config --cflags` `Wand-config --cppflags` -o jsn-importe

Re: [HACKERS] Tablespace and cpu costs

2004-08-18 Thread Gavin Sherry
On Wed, 18 Aug 2004, Gaetano Mendola wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > now that we have the tablespace support don't you think that > each tablespace needs his own costs instead of a system wide > one ? > > I searched in the archives and on the TODO list withou

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Gaetano Mendola
Joe Conway wrote: Tom Lane wrote: Joe Conway <[EMAIL PROTECTED]> writes: Hopefully the third try is a charm ;-) Version 3 is now available: fixes the init script. Previously /etc/init.d/postgresql worked the first time used (i.e. would initdb and start postgres) but not the second and subsequent

[HACKERS] Tablespace and cpu costs

2004-08-18 Thread Gaetano Mendola
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, now that we have the tablespace support don't you think that each tablespace needs his own costs instead of a system wide one ? I searched in the archives and on the TODO list without success. Regards Gaetano Mendola -BEGIN PGP SIGNATURE

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Peter Eisentraut
Alvaro Herrera wrote: > Why isn't the > .spec file (and the debian directory, for that matter) part of the > source tree? Since packaging usually happens after a release, or at least continues well after a release, such files or directories would be perpetually outdated. -- Peter Eisentraut ht

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Fabien COELHO
Dear Christopher, > > "TABLESPACE" appears in a basic pg_dump SQL output. If the test tablespace > > does not exist, the command will fail, and so my whole restoration. > > > > Thus I still stick to my opinion;-) > > Your complaint was that you need a way of continuing a restore if the > _tablesp

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Christopher Kings-Lynne
shell> pg_dump coelho | grep TABLESPACE CREATE SCHEMA test AUTHORIZATION coelho TABLESPACE test; "TABLESPACE" appears in a basic pg_dump SQL output. If the test tablespace does not exist, the command will fail, and so my whole restoration. Thus I still stick to my opinion;-) Your complaint was that

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Fabien COELHO
> > I'm not thinking about pg_dumpall but pg_dump/pg_restore. > > Tablespaces are dumped by pg_dumpall, not pg_dump. If so, indeed it would be a non-issue. However, shell> pg_dump coelho | grep TABLESPACE CREATE SCHEMA test AUTHORIZATION coelho TABLESPACE test; "TABLESPACE" appears in a basic p

Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?

2004-08-18 Thread Alvaro Herrera
On Tue, Aug 17, 2004 at 08:27:58PM -0700, Joe Conway wrote: > Tom Lane wrote: > >Joe Conway <[EMAIL PROTECTED]> writes: > > > >>Hopefully the third try is a charm ;-) > > > >>Version 3 is now available: fixes the init script. Previously > >>/etc/init.d/postgresql worked the first time used (i.e. w

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Christopher Kings-Lynne
At restore time it doesn't do anything since pg_dumpall is a text format only. I'm not thinking about pg_dumpall but pg_dump/pg_restore. Tablespaces are dumped by pg_dumpall, not pg_dump. Chris ---(end of broadcast)--- TIP 4: Don't 'kill -9' the post

Re: [HACKERS] tablespace and sequences?

2004-08-18 Thread Fabien COELHO
Dear Christopher, > > Allow database recovery where tablespaces can't be created > > How is that at all a problem? It is enough a small problem to be put in the todo list. > It's no different to the requirement to have installed all your contrib > .so's before running your restore, what's s