[HACKERS] CVS broken?

2000-10-10 Thread Philip Warner
I get the following when I build from CVS: gcc -I../../../src/include -I../../../src/interfaces/libpq -O2 -g -Wall -Wmissing-prototypes -Wmissing-declarations -o pg_dump pg_dump.o common.o pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o pg_backup_files.o pg_backup_null.o pg_backup_tar.o

Re: [HACKERS] CVS broken?

2000-10-10 Thread Hiroshi Inoue
Philip Warner wrote: > I get the following when I build from CVS: > > gcc -I../../../src/include -I../../../src/interfaces/libpq -O2 -g -Wall > -Wmissing-prototypes -Wmissing-declarations -o pg_dump pg_dump.o common.o > pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o pg_backup_files.o >

Re: [HACKERS] Announcing PgSQL - a Python DB-API 2.0 compliantinterface to PostgreSQL

2000-10-10 Thread Jeff MacDonald
Nope, neigher PyGreSQL nor ""PGSQL"" are products of Pgsql.com (aka PostgreSQL Inc)On Mon, 9 Oct 2000, Vince Vielhaber wrote: > On Mon, 9 Oct 2000, Bruce Momjian wrote: > > > I need to know how this is different than our current python interface, > > PyGreSQL. > > Is this a product of pgsql.com

Re: [HACKERS] ALTER TABLE DROP COLUMN

2000-10-10 Thread Hannu Krosing
The Hermit Hacker wrote: > > On Mon, 9 Oct 2000, Bruce Momjian wrote: > > Ya, but in one email, you appear to agree with me ... then Tom posts a > good point and you jump over to that side ... at least pick a side? :) I > too wish to see it implemented, I just don't want to have to double my >

Re: [HACKERS] CVS broken?

2000-10-10 Thread Bruce Momjian
> > -Wmissing-prototypes -Wmissing-declarations -o pg_dump pg_dump.o common.o > > pg_backup_archiver.o pg_backup_db.o pg_backup_custom.o pg_backup_files.o > > pg_backup_null.o pg_backup_tar.o -L../../.. > > /src/interfaces/libpq -lpq -lz -lcrypt -lnsl -ldl -lm -lreadline -lncurses > > -lz > > ../

Re: [HACKERS] Suggested change in include/utils/elog.h

2000-10-10 Thread Michael Meskes
On Sun, Oct 08, 2000 at 01:37:45PM -0400, Bruce Momjian wrote: > > But perhaps it is ecpg's fault for including "elog.h". > > IMHO these defines should never leave the database kernel. > ... > Yes, leaking into user programs is a bad practice. Is there a > solution/patch for that? Hmm, I haven'

Re: [HACKERS] Announcing PgSQL - a Python DB-API 2.0 compliantinterface to PostgreSQL

2000-10-10 Thread Vince Vielhaber
On Tue, 10 Oct 2000, Jeff MacDonald wrote: > Nope, neigher PyGreSQL nor ""PGSQL"" are products of > Pgsql.com (aka PostgreSQL Inc)On Mon, 9 Oct 2000, Vince Vielhaber wrote: I knew PyGreSQL wasn't but PgSQL appeared a bit misleading. Thanks for clearing that up. I guess on the website I should

[HACKERS] Re: [PATCHES] Re: [ANNOUNCE] Announce: Release of PyGreSQL version3.0

2000-10-10 Thread Peter Eisentraut
The Hermit Hacker writes: > > > > Announce: Release of PyGreSQL version 3.0 > > > > When is 7.1 being locked down? I may be releasing 3.1 with a few small > > fixes and changes very soon. > > you should be safe until mid-december or so ... as PyGreSQL doesn't affect > the build of PostgreSQL i

Re: [INTERFACES] Re: [HACKERS] Announcing PgSQL - a Python DB-API2.0 compliant interface to PostgreSQL

2000-10-10 Thread Peter Eisentraut
Bruce Momjian writes: > I need to know how this is different than our current python interface, > PyGreSQL. > > PgSQL is a package of two (2) modules that provide a Python DB-API 2.0 > > compliant interface to PostgreSQL databases. DB-API is the standard database interface for Python. Kind of

Re: [HACKERS] CVS broken?

2000-10-10 Thread Peter Eisentraut
Hiroshi Inoue writes: > For example the following line > CFLAGS+= -DFRONTEND -I$(srcdir) > in makefiles doesn't work currently. > > I found the recent change in Makefile.global.in. > ifeq ($(GCC), yes) > override CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations > endif Seems

[HACKERS] ORDER BY and UNION

2000-10-10 Thread Michael Fork
Is the following expected behavior for a UNION query with ORDER BY: executing this query: +++ SELECT a.attnum as number, a.attname as attribute, CASE WHEN t.typname = 'varchar' THEN t.typname || '(' || a.atttypmod - 4

Re: [INTERFACES] Re: [HACKERS] Announcing PgSQL - a Python DB-API 2.0 compliant interface to PostgreSQL

2000-10-10 Thread Jason Earl
Actually with version 3.0 of PyGreSQL there is a DB-API v2.0 compliant wrapper pgdb.py. --- Peter Eisentraut <[EMAIL PROTECTED]> wrote: > Bruce Momjian writes: > > > I need to know how this is different than our > current python interface, > > PyGreSQL. > > > > PgSQL is a package of two (2) mod

Re: [HACKERS] ORDER BY and UNION

2000-10-10 Thread Tom Lane
Michael Fork <[EMAIL PROTECTED]> writes: > However, if I execute the same query and drop "a.attnum as number" from > the select part, it returns the following: > ... > which is incorrect accoring to the initial query. It appears to be > ordering the individual selects and then appending the secon

[HACKERS] Re: [INTERFACES] Announcing PgSQL - a Python DB-API 2.0 compliant interface to PostgreSQL

2000-10-10 Thread Tom Lane
"Billy G. Allie" <[EMAIL PROTECTED]> writes: > Peter Eisentraut wrote: >> Sounds interesting, but isn't "pgsql" an extremely unfortunate choice of >> name, given that it's already used as an abbreviation for "PostgreSQL"? > PgSQL is the name of the module you import in Python to access a PostgreS

[HACKERS] Possible age() bug?

2000-10-10 Thread Mitch Vincent
Maybe I'm just overlooking something really simple but this has me a bit confused. What I'm trying to do is get the amount of time from A to B -- I thought age() would do just that but it seems to be about a day off sometimes. hhs=# SELECT age('Sun Dec 03 08:00:00 2000 EST','Tue Oct 10 08:00:00

Re: [HACKERS] Possible age() bug?

2000-10-10 Thread Mitch Vincent
> I should point out that it works as I expected it to on other values.. > > hhs=# SELECT age('Sun Nov 05 08:00:00 2000 EST','Tue Oct 10 08:00:00 2000 > EDT') as esec; >esec > -- > @ 26 days 1 hour > (1 row) > > hhs=# SELECT ('Tue Oct 10 08:00:00 2000 EDT'::timestamp + '1

[HACKERS] FreeBSD, OpenBSD, NetBSD templates

2000-10-10 Thread Peter Eisentraut
Would it be politically incorrect to combine named templates (including port makefiles, etc.) into one, since they all do the same thing anyway? -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/

Re: [HACKERS] FreeBSD, OpenBSD, NetBSD templates

2000-10-10 Thread Jim Mercer
On Tue, Oct 10, 2000 at 11:40:17PM +0200, Peter Eisentraut wrote: > Would it be politically incorrect to combine named templates (including > port makefiles, etc.) into one, since they all do the same thing anyway? i'm not sure about openbsd, but freebsd likes to install "packages" into /usr/loca

[HACKERS] Re: [PATCHES] CLASSOID patch

2000-10-10 Thread Bruce Momjian
I don't see this in the tree. Status, please. > > Attached is a first attempt at implementing the classoid feature. It > works! Can the postgres gurus comment if I've done it right and point > out any problems. A lot of it was guess work so I'm sure it can be > cleaned up some. > > -- > Chris

Re: [HACKERS] FreeBSD, OpenBSD, NetBSD templates

2000-10-10 Thread Vince Vielhaber
On Tue, 10 Oct 2000, Peter Eisentraut wrote: > Would it be politically incorrect to combine named templates (including > port makefiles, etc.) into one, since they all do the same thing anyway? Don't forget bsdi. Lately they've all been referring to the group of them as bsd. Vince. -- =

[HACKERS] Re: [PATCHES] CLASSOID patch

2000-10-10 Thread Tom Lane
It's TableOid now. That patch is long dead... regards, tom lane

[HACKERS] Re: [INTERFACES] Announcing PgSQL - a Python DB-API 2.0 compliantinterface to PostgreSQL

2000-10-10 Thread The Hermit Hacker
On Tue, 10 Oct 2000, Billy G. Allie wrote: > Tom Lane wrote: > > "Billy G. Allie" <[EMAIL PROTECTED]> writes: > > > Peter Eisentraut wrote: > > >> Sounds interesting, but isn't "pgsql" an extremely unfortunate choice of > > >> name, given that it's already used as an abbreviation for "PostgreSQL"

Re: [HACKERS] CVS broken?

2000-10-10 Thread Hiroshi Inoue
Peter Eisentraut wrote: > Hiroshi Inoue writes: > > > For example the following line > > CFLAGS+= -DFRONTEND -I$(srcdir) > > in makefiles doesn't work currently. > > > > I found the recent change in Makefile.global.in. > > ifeq ($(GCC), yes) > > override CFLAGS += -Wall -Wmissing-protot

Re: [GENERAL] Re: [HACKERS] My new job

2000-10-10 Thread Gunnar R|nning
Bruce Momjian <[EMAIL PROTECTED]> writes: > more in voliation of the original plan. > violation ? Or is this just another gap in my knowledge of the English language ? Gunnar

Re: [GENERAL] Re: [HACKERS] My new job

2000-10-10 Thread Bruce Momjian
As promised, the press release is at: http://www.greatbridge.com/news/p_101020001.html -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be

Re: [HACKERS] Proposal: More flexible backup/restore via pg_dump

2000-10-10 Thread Bruce Momjian
Can I ask on a status? > At 10:17 26/06/00 +0200, Zeugswetter Andreas SB wrote: > > > >A problem I see with an index at file end is, that you will need to read the > >file twice, and that may be very undesireable if e.g the backup is on tape > >or a compressed file. > > The proposal has actually

Re: [HACKERS] 7.0.2 on Solaris

2000-10-10 Thread Bruce Momjian
I think our source tree has diverged quite a bit from 7.0.2. Could you grab a snapshot and let me know what needs changing for Solaris? Thanks. > I'm in the process of fixing build problems in 7.0.2 for Solaris CC > (not GCC). > > 1. I'm curious why src/template/solaris_sparc_cc contains: > -

Re: [HACKERS] Minor buglet in update...from (I think)

2000-10-10 Thread Bruce Momjian
I can confirm this is still a bug. > > A minor nasty error I got when trying to improve the query used to disable > triggers: > > create table t1(f1 int4, f2 int4); > create table t2(f1 int4, f2 int4); > > insert into t1 values(1, 0); > insert into t1 values(2, 0); > > insert into t2 values(

Re: [GENERAL] Re: [HACKERS] My new job

2000-10-10 Thread Lamar Owen
Bruce Momjian wrote: > > As promised, the press release is at: > > http://www.greatbridge.com/news/p_101020001.html Wow. Nice. The combined qualifications of the six steering committee members are staggering. Me, I'm just a lowly broadcast engineer with ten years experience and a mea

Re: [HACKERS] Modified pg_dump & new pg_restore need testing...

2000-10-10 Thread Bruce Momjian
Philip, where did we leave this? > > If anyone is interested in being sent the current sources for the new > pg_dump & pg_restore, please let me know. > > The utilities now seem to work, but need testing. > > The basic idea is to use pg_dump to dump an *entire* database, and then use > pg_rest

Re: [HACKERS] Proposal: More flexible backup/restore via pg_dump

2000-10-10 Thread Philip Warner
At 20:49 10/10/00 -0400, Bruce Momjian wrote: >Can I ask on a status? Done. Philip Warner| __---_ Albatross Consulting Pty. Ltd. |/ - \ (A.B.N. 75 008 659 498) | /(@) __

Re: [HACKERS] heap_create with OID? (fwd)

2000-10-10 Thread Bruce Momjian
This relates to large objects too. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.| Drexel Hill, Pennsylvania 19026 At

Re: [HACKERS] heap_create with OID? (fwd)

2000-10-10 Thread Bruce Momjian
If anyone was following my request to have a large object api for TOAST, this is of interest. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be yo

Re: [HACKERS] Modified pg_dump & new pg_restore need testing...

2000-10-10 Thread Philip Warner
At 21:01 10/10/00 -0400, Bruce Momjian wrote: >Philip, where did we leave this? In CVS. ;-). The longer answer is that it's been in CVS for a while, and I have a version for 7.0.2 which I have also been using for a while. Various people have tested it, but not as many or as much as I would like

[HACKERS] RE: [INTERFACES] Announcing PgSQL - a Python DB-API 2.0 compliantinterface to PostgreSQL

2000-10-10 Thread The Hermit Hacker
On Wed, 11 Oct 2000, Christopher Sawtell wrote: > On Wed, 11 Oct 2000, [EMAIL PROTECTED] wrote: > > > The project name on SourceForge is "Python Interface to PostgreSQL". > > > > How about PIPgSQL or piPgSQL? > > Perhaps Pi2PgSQL, or PySQL_ba PySQL_ba? *grin*

[HACKERS] Re: [PATCHES] PostgreSQL virtual hosting support

2000-10-10 Thread Bruce Momjian
I am tempted to apply this. This is the second person who asked for binding to a single port. The patch looks quite complete, with doc changes. It appears to be a thorough job. Any objections? > Your name : David MacKenzie > Your email address: [EMAIL PROTECTED] >

Re: [HACKERS] RE: [INTERFACES] Announcing PgSQL - a Python DB-API2.0 compliant interface to PostgreSQL

2000-10-10 Thread Vince Vielhaber
On Tue, 10 Oct 2000, The Hermit Hacker wrote: > On Wed, 11 Oct 2000, Christopher Sawtell wrote: > > > On Wed, 11 Oct 2000, [EMAIL PROTECTED] wrote: > > > > The project name on SourceForge is "Python Interface to PostgreSQL". > > > > > > How about PIPgSQL or piPgSQL? > > > > Perhaps Pi2PgSQL, o

Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hosting support

2000-10-10 Thread Lamar Owen
Bruce Momjian wrote: > > I am tempted to apply this. This is the second person who asked for > binding to a single port. The patch looks quite complete, with doc > changes. It appears to be a thorough job. A cursory inspection makes it look like the socket file can be placed _anywhere_ -- eve

[HACKERS] Re: [INTERFACES] Announcing PgSQL - a Python DB-API 2.0 compliant interface to PostgreSQL

2000-10-10 Thread Billy G. Allie
Peter Eisentraut wrote: > Billy G. Allie writes: > > > PgSQL v1.0 has been released. This is the first public release of PgSQL. > > It is available at http://sourceforge.net/projects/pgsql. > > Sounds interesting, but isn't "pgsql" an extremely unfortunate choice of > name, given that it's alre

RE: [BUGS] POSTGRES BUG - FIX IT PLEASE

2000-10-10 Thread Mikheev, Vadim
> > create table t1 > > ( > > f1 integer, > > f2 integer > > ); > > > > create table t2 > > ( > > f1 integer references t1(f1), > > f2 integer > > ); > > > begin transaction; > > insert into t1(f1,f2) values(1,1); > > delete from t1 where f1=1; > > > ERROR: trig

Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hosting support

2000-10-10 Thread The Hermit Hacker
On Tue, 10 Oct 2000, Bruce Momjian wrote: > I am tempted to apply this. This is the second person who asked for > binding to a single port. The patch looks quite complete, with doc > changes. It appears to be a thorough job. > > Any objections? >From a quick read of his "description of probl

[HACKERS] Re: [INTERFACES] Announcing PgSQL - a Python DB-API 2.0 compliant interface to PostgreSQL

2000-10-10 Thread Billy G. Allie
Tom Lane wrote: > "Billy G. Allie" <[EMAIL PROTECTED]> writes: > > Peter Eisentraut wrote: > >> Sounds interesting, but isn't "pgsql" an extremely unfortunate choice of > >> name, given that it's already used as an abbreviation for "PostgreSQL"? > > > PgSQL is the name of the module you import in

[GENERAL] Re: [HACKERS] My new job

2000-10-10 Thread Don Baccus
At 01:02 PM 10/10/00 -0400, Tom Lane wrote: >Bottom line is we're not sure what to do now. Opinions from the >floor, anyone? Yeah, quit worrying and work your collective butts off on 7.1 and 7.2 :) Seriously...the core group is obviously committed to PG, and appear to be folks of integrity.

Re: [HACKERS] Re: [PATCHES] PostgreSQL virtual hosting support

2000-10-10 Thread Alfred Perlstein
* Bruce Momjian <[EMAIL PROTECTED]> [001010 18:36] wrote: > I am tempted to apply this. This is the second person who asked for > binding to a single port. The patch looks quite complete, with doc > changes. It appears to be a thorough job. > > Any objections? I know several other people were

[HACKERS] calling PQendcopy() without blocking.

2000-10-10 Thread Alfred Perlstein
At times I need to call PQendcopy, how to I determine that it won't block me waiting for output from the backend? -- -Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]] "I have the heart of a child; I keep it in a jar on my desk."

[HACKERS] Re: [INTERFACES] Announcing PgSQL - a Python DB-API 2.0 compliant interface to PostgreSQL

2000-10-10 Thread Lamar Owen
Christopher Sawtell wrote: > On Wed, 11 Oct 2000, [EMAIL PROTECTED] wrote: > > > The project name on SourceForge is "Python Interface to PostgreSQL". > > How about PIPgSQL or piPgSQL? > Perhaps Pi2PgSQL, or PySQL_ba PyGSQyl. Anagram fun on "PostgreSQL": PostgreSQL= Eg: Ports SQL Gets Pro SQL G

[HACKERS] Problem specifying limit in select inside insert.

2000-10-10 Thread Denis Perchine
Hello, I have quite strange behavior of the following SQL: insert into address (cid,email) select distinct '49'::int,member.email from member imit 1 ; It should insert just 1 record. But it insert all recodrs which will be selected by subselect... What's wrong with this SQL? Or this is a bug?