Re: [PERFORM] Bulk persistence strategy - Mailing list pgsql-performance

From Tom Lane
Subject Re: [PERFORM] Bulk persistence strategy
Date
Msg-id 64473.1495453815@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PERFORM] Bulk persistence strategy  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-performance
Simon Riggs <simon@2ndquadrant.com> writes:
> It sounds like you don't know about anonymous code blocks with DO
> https://www.postgresql.org/docs/devel/static/sql-do.html

No, the problem was that there are also some parameters to be passed
in from the application, and DO doesn't take any parameters; so that
would require inserting them manually into the DO text, with all the
attendant hazards of getting-it-wrong.

We've speculated before about letting DO grow some parameter handling,
but it's not gotten to the top of anyone's to-do list.

            regards, tom lane


pgsql-performance by date:

Previous
From: Riaan Stander
Date:
Subject: Re: [PERFORM] Bulk persistence strategy
Next
From: Ariel
Date:
Subject: [PERFORM] index of only not null, use function index?