On Thu, Feb 4, 2016 at 11:41 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Filip Rembiałkowski <filip.rembialkowski@gmail.com> writes: > A table has a trigger. > The trigger sends a NOTIFY. > Test with COPY FROM shows non-linear correlation between number of inserted > rows and COPY duration.
No surprise, see AsyncExistsPendingNotify. You would have a lot of other performance issues with sending hundreds of thousands of distinct notify events from one transaction anyway, so I can't get terribly excited about this.
What kind of issues? Do you mean, problems in postgres or problems in client?
Is there an additional non-linear cost on COMMIT (extra to the cost I already showed)?