Re: Partitioned tables do not return affected row counts to client

Поиск
Список
Период
Сортировка
Искать
От
rob stone
Тема
Re: Partitioned tables do not return affected row counts to client
Дата
Msg-id
1464902266.3796.5.camel@gmail.com
Ответ на
Список
Дерево обсуждения
Partitioned tables do not return affected row counts to client rverghese <riyav@hotmail.com>
Re: Partitioned tables do not return affected row counts to client rob stone <floriparob@gmail.com>
Re: Partitioned tables do not return affected row counts to client Vik Fearing <vik@2ndquadrant.fr>
On Thu, 2016-06-02 at 11:01 -0700, rverghese wrote:
> We are looking to move from one large table to partitioned tables.
> Since the
> inserts and updates are made to the master table and then inserted
> into the
> appropriate partitioned table based on the trigger rules, the
> affected_rows
> returned to the client (PHP in this case) is always 0. We have been
> using
> the affected_rows to check various things on the client end. Is there
> an
> alternative to check for rows affected with partitioned tables? Seems
> like a
> pretty big missing feature. 
> Thanks
> RV
> 
> 
> 
> --
> View this message in context: http://postgresql.nabble.com/Partitione
> d-tables-do-not-return-affected-row-counts-to-client-tp5906112.html
> Sent from the PostgreSQL - general mailing list archive at
> Nabble.com.
> 
> 

pg_affected_rows returns its value from the last SQL statement
executed.
So, if the last one was a "COMMIT" say, then it returns zero.


I guess you already know this.
Without knowing the complete circumstances, all I can suggest is
running a query using your partitioning rules to verify that the rows
were inserted into the correct partition.

HTH,
Rob

В списке pgsql-general по дате отправления
От: Steve Clark
Дата:
Сообщение: Re: dumb question
От: Kevin Grittner
Дата:
Сообщение: Re: dumb question
FAQ