From: Richard Huxton <dev@archonet.com>
To: Sridhar Reddy Ratna <sridhar.ratna@cmcltd.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: trigger failed to identify the partions
Date: Wed, 09 Sep 2009 15:35:35 +0100
Message-ID: <4AA7BD37.7020407@archonet.com> (raw)
In-Reply-To: <D61F8ACA9D3743EEAB0538006FA211DC@Sridharvisic>
References: <17DD0201A12947039313F26974E8E9B4@Sridharvisic>
<4AA77DD7.5040908@archonet.com>
<D61F8ACA9D3743EEAB0538006FA211DC@Sridharvisic>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, sridhar.ratna@cmcltd.com
Subject: Re: trigger failed to identify the partions
In-Reply-To: <4AA7BD37.7020407@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox