how to find the number of rows inserted into the master table? - Mailing list pgsql-general

From SHARMILA JOTHIRAJAH
Subject how to find the number of rows inserted into the master table?
Date
Msg-id 451879.68751.qm@web31103.mail.mud.yahoo.com
Whole thread Raw
List pgsql-general
Hi,
I have a master table 'Master' with 3 partition tables 'child1', 'child2',' child3' which inherits the master table 'Master'. I have check constraints in the child tables to insert the appropriate values and also there are functions and triggers defined to do this.
My question is, if I insert a row into master, the row correctly gets inserted into the child tables. But the output always shows '0 rows inserted' since the rows are not actually inserted in to the master.
Is there a way to show the number of rows inserted into the master tables (though in reality the rows get inserted into the partitions and not the master)

Thanks in advance
shar joe


Pinpoint customers who are looking for what you sell.

pgsql-general by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: temp tables and sequences in functions
Next
From: Owen Hartnett
Date:
Subject: Re: problem with transactions in VB.NET using npgsql