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

From Simon Riggs
Subject Re: [PERFORM] Bulk persistence strategy
Date
Msg-id CANP8+jJqTu0RkqehMnkABa-LzHA+ysTDAt=xmJ-MK5akvNo1Ug@mail.gmail.com
Whole thread Raw
In response to Re: [PERFORM] Bulk persistence strategy  (Riaan Stander <rstander@exa.co.za>)
Responses Re: [PERFORM] Bulk persistence strategy
List pgsql-performance
On 22 May 2017 at 09:06, Riaan Stander <rstander@exa.co.za> wrote:

>> It sounds like you don't know about anonymous code blocks with DO
>> https://www.postgresql.org/docs/devel/static/sql-do.html
>>
>
> Yes I do know about that feature. My first implemented generated an
> anonymous code block, but to my utter dismay once I tried actually doing
> parameter binding from the application it did not work. This seems to be a
> Postgres limitation actually stated in the documentation. The anonymous code
> block is treated as a function body with no parameters.
>
> Thanks for the suggestion though.

Perhaps we should look into parameterisable DO statements.

--
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-performance by date:

Previous
From: Riaan Stander
Date:
Subject: Re: [PERFORM] Bulk persistence strategy
Next
From: Riaan Stander
Date:
Subject: Re: [PERFORM] Bulk persistence strategy