pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: Riaan Stander <rstander@exa.co.za>
Cc: pgsql-performa. <pgsql-performance@postgresql.org>
Subject: Re: Bulk persistence strategy
Date: Mon, 22 May 2017 07:50:15 -0400
Message-ID: <64473.1495453815@sss.pgh.pa.us> (raw)
In-Reply-To: <CANP8+jL54J5_i6K3zX9Zm2wGirBbeh1YG0uLXBwARiLjyjenrg@mail.gmail.com>
References: <04c901d2a753$f55de020$e019a060$@exa.co.za>
	<15c29aeedc8.27e1.e05fafc80f8daf1488764675043d44fb@exa.co.za>
	<32403.1495377186@sss.pgh.pa.us>
	<0e47ae52-e80a-fd8e-021c-7c8cc0495b26@exa.co.za>
	<30684.1495406234@sss.pgh.pa.us>
	<de75eb5b-be39-d3f4-ae5f-65d67f53ec59@exa.co.za>
	<CANP8+jL54J5_i6K3zX9Zm2wGirBbeh1YG0uLXBwARiLjyjenrg@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (11+ messages)  latest in thread

Message-ID: <64473.1495453815@sss.pgh.pa.us>
Permalink:  ../64473.1495453815@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/64473.1495453815@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com, rstander@exa.co.za
  Subject: Re: Bulk persistence strategy
  In-Reply-To: <64473.1495453815@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox