Обсуждение: Table Partition
Hi,
I created the partition for existing table, its working fine.
but the problem is it is creating two records in master table. i don't know what i did wrong..
Thanks & Regards
Saravanan S
On Thu, Aug 28, 2014 at 5:30 AM, Saravanan.S <saravanan.s@sodtechnologies.com> wrote:
but the problem is it is creating two records in master table. i don't know what i did wrong..
You possible did the redirect trigger function wrong. It should be a before trigger that returns NULL.
Regards,
--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres
On 08/28/2014 11:30 AM, Saravanan.S wrote:
Is there a trigger on inherited tables?
Can you send your insert sql or table structure ?Hi,I created the partition for existing table, its working fine.but the problem is it is creating two records in master table. i don't know what i did wrong..Thanks & RegardsSaravanan S
Is there a trigger on inherited tables?
-- M.Atıf CEYLAN Yurdum Yazılım
Thanks Matheus, its working fine now.
From: "Matheus de Oliveira" <matioli.matheus@gmail.com>
Sent: Thursday, August 28, 2014 7:50 PM
To: saravanan.s@sodtechnologies.com
Cc: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.org>
Subject: Re: [ADMIN] Table Partition
Sent: Thursday, August 28, 2014 7:50 PM
To: saravanan.s@sodtechnologies.com
Cc: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.org>
Subject: Re: [ADMIN] Table Partition
On Thu, Aug 28, 2014 at 5:30 AM, Saravanan.S <saravanan.s@sodtechnologies.com> wrote:
but the problem is it is creating two records in master table. i don't know what i did wrong..
You possible did the redirect trigger function wrong. It should be a before trigger that returns NULL.
Regards,
--
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres
Matheus de Oliveira
Analista de Banco de Dados
Dextra Sistemas - MPS.Br nível F!
www.dextra.com.br/postgres