Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Philip Warner
At 23:57 2/04/01 -0400, Tom Lane wrote: > >NOT NULL on a child field would only force it to be dumped if none >of the parents say NOT NULL. Type name really is not an issue since >it will have to be the same in all the tables anyway; I wouldn't bother >expending any code there. > I've made tha c

Re: [HACKERS] Bug in user-defined types?

2001-04-02 Thread Adriaan Joubert
Tom Lane wrote: > > Seems unlikely that that code could have worked either way, since you > forgot to mark type uint2 as PASSEDBYVALUE... > Aargh! Thanks! Yes, when implementing it in the backend, that was just a field to fill in, so I did it there. All seems well now. One ends up with a vast

[HACKERS] Do we have any platforms that allow null pointer dereference?

2001-04-02 Thread Tom Lane
Do we have any supported platforms where dereferencing a null pointer doesn't trigger coredump? I'm wondering about this after noticing the likely side effects of fd.c's failure to check for null result from malloc(): it'll try to strcpy() filenames to location zero. If it succeeds, you could en

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Tom Lane
Philip Warner <[EMAIL PROTECTED]> writes: > At 13:27 2/04/01 -0400, Tom Lane wrote: >> Philip: the rule that pg_dump needs to apply w.r.t. defaults for >> inherited fields is that if an inherited field has a default and >> either (a) no parent table supplies a default, or (b) any parent >> table s

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Philip Warner
At 13:27 2/04/01 -0400, Tom Lane wrote: > >Philip: the rule that pg_dump needs to apply w.r.t. defaults for >inherited fields is that if an inherited field has a default and >either (a) no parent table supplies a default, or (b) any parent >table supplies a default different from the child's, then

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Tom Lane
[EMAIL PROTECTED] (Nathan Myers) writes: > On Sat, Mar 31, 2001 at 07:44:30PM -0500, Tom Lane wrote: >> That is: >> >> create table p1 (f1 int default 1); >> create table p2 (f1 int default 2); >> create table c1 (f2 float) inherits(p1, p2); # XXX >> >> would draw an error about conflicting de

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Nathan Myers
On Mon, Apr 02, 2001 at 01:27:06PM -0400, Tom Lane wrote: > Philip: the rule that pg_dump needs to apply w.r.t. defaults for > inherited fields is that if an inherited field has a default and > either (a) no parent table supplies a default, or (b) any parent > table supplies a default different fr

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Nathan Myers
On Sun, Apr 01, 2001 at 03:15:56PM -0400, Tom Lane wrote: > Christopher Masto <[EMAIL PROTECTED]> writes: > > Another thing that seems kind of interesting would be to have: > > CREATE TABLE base (table_id CHAR(8) NOT NULL [, etc.]); > > CREATE TABLE foo (table_id CHAR(8) NOT NULL DEFAULT 'foo');

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Nathan Myers
On Sat, Mar 31, 2001 at 07:44:30PM -0500, Tom Lane wrote: > [EMAIL PROTECTED] (Nathan Myers) writes: > >> This seems pretty random. It would be more reasonable if multiple > >> (default) inheritance weren't allowed unless you explicitly specify a new > >> default for the new column, but we don't

Re: [HACKERS] Shouldn't ON UPDATE/DELETE triggers be BEFORE triggers?

2001-04-02 Thread Stephan Szabo
> While thinking over Jeremy Radlow's recent problem report in > pgsql-general, it occurs to me that it's probably wrong to implement > referential integrity actions like ON CASCADE DELETE in AFTER triggers. > Seems to me that this breaks the fundamental rule of referential > integrity: if B refer

[HACKERS] Update HISTORY/release.sgml

2001-04-02 Thread Bruce Momjian
I have updated HISTORY/release.sgml to contain the most recent changes for 7.1. -- 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.

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: >> Well, we *do* have a syntax for specifying a new default (the same one >> that worked pre-7.0 and does now again). I guess what you are proposing >> is the rule "If conflicting default values are inherited from multiple >> parents

Re: [HACKERS] Re: Indexes vs indices

2001-04-02 Thread Lamar Owen
Tom Lane wrote: > [Dept of swatting flies with sledgehammers] > I'd say that the use of "index" in database work clearly falls under > sense 5b, and so "indexes" is the usual plural according to the OED. As a volume of the OED is about the weight of a small sledgehammer, that fly is one dead pupp

RE: [HACKERS] Shouldn't ON UPDATE/DELETE triggers be BEFORE triggers?

2001-04-02 Thread Mikheev, Vadim
> While thinking over Jeremy Radlow's recent problem report in > pgsql-general, it occurs to me that it's probably wrong to implement > referential integrity actions like ON CASCADE DELETE in AFTER > triggers. Seems to me that this breaks the fundamental rule of > referential integrity: if B refe

[HACKERS] Re: Indexes vs indices

2001-04-02 Thread Bruce Momjian
> [Dept of swatting flies with sledgehammers] > > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > One of these days we should decide on a spelling of "indexes" vs > > "indices". > > I'd vote for "indexes", first on the practical grounds that it's a more > sensible spelling, and secondly on the

[HACKERS] Re: Indexes vs indices

2001-04-02 Thread Tom Lane
[Dept of swatting flies with sledgehammers] Peter Eisentraut <[EMAIL PROTECTED]> writes: > One of these days we should decide on a spelling of "indexes" vs > "indices". I'd vote for "indexes", first on the practical grounds that it's a more sensible spelling, and secondly on the grounds that the

Re: [HACKERS] Re: Changing the default value of an inherited column

2001-04-02 Thread Peter Eisentraut
Tom Lane writes: > Well, we *do* have a syntax for specifying a new default (the same one > that worked pre-7.0 and does now again). I guess what you are proposing > is the rule "If conflicting default values are inherited from multiple > parents that each define the same column name, then an er

[HACKERS] Shouldn't ON UPDATE/DELETE triggers be BEFORE triggers?

2001-04-02 Thread Tom Lane
While thinking over Jeremy Radlow's recent problem report in pgsql-general, it occurs to me that it's probably wrong to implement referential integrity actions like ON CASCADE DELETE in AFTER triggers. Seems to me that this breaks the fundamental rule of referential integrity: if B references A th

[HACKERS] Irix binaries of 7.1 RC1 are available

2001-04-02 Thread Robert E. Bruccoleri
Binaries for PostgreSQL 7.1 RC1 are now available in ftp://ftp.postgresql.org/pub/binary/v7.1/IRIX_6.5.7/ All regression tests pass except that geometry is different by very small amounts (< 10^14) and join gives the same rows in a different order. +--+--

Re: [HACKERS] Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOWDont!! HELP

2001-04-02 Thread Bruce Momjian
> Bruce Momjian writes: > > > + elog(ERROR, "You can not create indexes on system tables: %s'", > > +heapRelationName); > > One of these days we should decide on a spelling of "indexes" vs > "indices". Yes. Added to TODO: * Decide on spelling of

Re: [HACKERS] Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX onPG_SHADOW Dont!! HELP

2001-04-02 Thread Peter Eisentraut
Bruce Momjian writes: > + elog(ERROR, "You can not create indexes on system tables: %s'", > +heapRelationName); One of these days we should decide on a spelling of "indexes" vs "indices". -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/pete

[HACKERS] Re: [SQL] Re: pg_dump potential bug -UNIQUE INDEX on PG_SHADOW Dont!!HELP

2001-04-02 Thread Bruce Momjian
Patch applied, with wording modifications by Tom Lane. > > Hi > > > > Regarding my previous post, I just successfully created a unique index on > > pg_shadow. DON'T DO THIS!!! > > --- > > CREATE UNIQUE INDEX shadow_index ON pg_shadow (usename) > > --- > > I couldn't create at pg_shado

Re: [HACKERS] Bug in user-defined types?

2001-04-02 Thread Tom Lane
Adriaan Joubert <[EMAIL PROTECTED]> writes: > In response to comments made here, I have been rewriting the unsigned > types as externally loadable. Using the same routines that worked fine > when linked statically into the backend gives me core-dumps only. Seems unlikely that that code coul

Re: [HACKERS] CVS commits

2001-04-02 Thread The Hermit Hacker
will still get into v7.1 *nod* On Mon, 2 Apr 2001, Michael Meskes wrote: > Will current CVS commits make it into 7.1? Or do I have to use a different > branch. I just committed a minor patch to keep the parsers in sync and also > committed a bug fix last week. Both should be in 7.1. > > Michael

[HACKERS] QNX : POSSIBLE BUG IN CONFIGURE ?

2001-04-02 Thread Maurizio
Hi all   As I posted few days ago I started checking postgresql 7.1RC1 in QNX 4.25. The last I checked was 7.1b3.   the problem is :   when I execute configure it recognize the executable suffix as .map and this is not right. And the test program fails. If I try the same in 7.1b3 all works g

Re: [HACKERS] CVS commits

2001-04-02 Thread Alfred Perlstein
* Michael Meskes <[EMAIL PROTECTED]> [010402 04:41] wrote: > Will current CVS commits make it into 7.1? Or do I have to use a different > branch. I just committed a minor patch to keep the parsers in sync and also > committed a bug fix last week. Both should be in 7.1. You should be able to check

[HACKERS] Re: plpython for postgres 7.1

2001-04-02 Thread Karel Zak
On Sat, Mar 31, 2001 at 11:45:13PM -0500, Andrew Bosma wrote: > > Hello all > > A couple of weeks ago I received an email from Albert Langer inquiring > about the status of the python language module I had written for > postgresql. I told him I could have the port to postgresql 7.1 done > by th

[HACKERS] CVS commits

2001-04-02 Thread Michael Meskes
Will current CVS commits make it into 7.1? Or do I have to use a different branch. I just committed a minor patch to keep the parsers in sync and also committed a bug fix last week. Both should be in 7.1. Michael -- Michael Meskes [EMAIL PROTECTED] Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linu

[HACKERS] Bug in user-defined types?

2001-04-02 Thread Adriaan Joubert
Hi, In response to comments made here, I have been rewriting the unsigned types as externally loadable. Using the same routines that worked fine when linked statically into the backend gives me core-dumps only. Creating only a single uint2 type with I/O routines, I get test=# create tabl