[BUGS] BUG #5505: Busted referential integrity with triggers

2010-06-14 Thread Tommy McDaniel
The following bug has been logged online: Bug reference: 5505 Logged by: Tommy McDaniel Email address: tommst...@myway.com PostgreSQL version: 8.4.4 Operating system: Kubuntu 9.10 Description:Busted referential integrity with triggers Details: Let us create a table

[BUGS] BUG #5506: Error in the grammar of de joins

2010-06-14 Thread Fernando Cano
The following bug has been logged online: Bug reference: 5506 Logged by: Fernando Cano Email address: fc...@uniovi.es PostgreSQL version: 8.4 Operating system: Ubuntu 9.04 Description:Error in the grammar of de joins Details: This sentences are valid with your gramm

[BUGS] BUG #5507: missing chunk number 0 for toast value XXXXX in pg_toast_XXXXX

2010-06-14 Thread Shinji Nakajima
The following bug has been logged online: Bug reference: 5507 Logged by: Shinji Nakajima Email address: sina...@jops.co.jp PostgreSQL version: 8.3.8 Operating system: Red Hat Enterprise Linux Server release 5.3 (Tikanga) Description:missing chunk number 0 for toast va

Re: [BUGS] BUG #5505: Busted referential integrity with triggers

2010-06-14 Thread Tom Lane
"Tommy McDaniel" writes: > Let us also create a trigger to disable UPDATEs on table_2: > ... > And, we have now broken referential integrity. Yup, this is not a bug, it's a feature. Triggers fire on referential-integrity updates. (If they didn't, you could not for example have a logging trigger

Re: [BUGS] BUG #5506: Error in the grammar of de joins

2010-06-14 Thread Tom Lane
"Fernando Cano" writes: > This sentences are valid with your grammar but generate an error. > create table t1 ( id_t1 smallint, name text); > create table t2 ( id_t2 smallint, name text); > select * from natural join using (id) ; > select * from t1 natural cross join t2; > select * from natural

Re: [BUGS] BUG #5507: missing chunk number 0 for toast value XXXXX in pg_toast_XXXXX

2010-06-14 Thread Tom Lane
"Shinji Nakajima" writes: > Error message called "missing chunk number" occurred when I did select of > the specific column of the specific table. This might indicate that the toast table's index was corrupted. > I delete a record, and the system restores, but prime cause is unknown. > Will this

Re: [BUGS] BUG #5507: missing chunk number 0 for toast value XXXXX in pg_toast_XXXXX

2010-06-14 Thread Kevin Grittner
"Shinji Nakajima" wrote: > Error message called "missing chunk number" occurred when I did > select of the specific column of the specific table. > I delete a record, and the system restores, but prime cause is > unknown. Will this be a bug of the databases? Errors like this are usually cau

[BUGS] Re: BUG #5507: missing chunk number 0 for toast value XXXXX in pg_toast_XXXXX

2010-06-14 Thread Greg Stark
On Mon, Jun 14, 2010 at 11:28 AM, Shinji Nakajima wrote: > PostgreSQL version: 8.3.8 > Description:        missing chunk number 0 for toast value X in > pg_toast_X > > I delete a record, and the system restores, but prime cause is unknown. > Will this be a bug of the databases? Probably.

Re: [BUGS] BUG #5505: Busted referential integrity with triggers

2010-06-14 Thread Tommy McDaniel
I can understand firing the triggers. But what's up with not checking that the foreign key constraint is met? If the user has to manually ensure that values maintain referential integrity, why have foreign keys at all? The whole point of foreign keys is to make the database ensure referential in

Re: [BUGS] BUG #5505: Busted referential integrity with triggers

2010-06-14 Thread Tom Lane
"Tommy McDaniel" writes: > I can understand firing the triggers. But what's up with not checking that > the foreign key constraint is met? If the user has to manually ensure that > values maintain referential integrity, why have foreign keys at all? The > whole point of foreign keys is to make