Re: trigger failed to identify the partions

From: Richard Huxton <dev(at)archonet(dot)com>
To: Sridhar Reddy Ratna <sridhar(dot)ratna(at)cmcltd(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: trigger failed to identify the partions
Date: 2009-09-09 14:35:35
Message-ID: 4AA7BD37.7020407@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Sridhar Reddy Ratna wrote:
>
> cmd := 'INSERT INTO ' || dateTable ||

> EXECUTE cmd;

> RETURN NEW;

> If I changed the RETURN NEW to RETURN NULL its inserting only one row.

Yes. RETURN NEW allows the insert to procede normally so you end up with
the two rows.

> But to work with hibernate I need the return NEW statement.

Hmm - not sure I can see a way around this. Maybe someone else who knows
Hibernate can help.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message jtayamai 2009-09-09 16:09:57 Encryption in the tables of a Postgres 7.3.2 database
Previous Message Little, Douglas 2009-09-09 13:27:35 how to: refer to select list calculations other places in the calculations.