pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: execute block like Firebird does
Date: Mon, 12 Feb 2018 09:08:13 -0800
Message-ID: <45ecb017-06af-ed3c-dfdc-be32ce0df924@aklaver.com> (raw)
In-Reply-To: <1518454625970-0.post@n3.nabble.com>
References: <1518328644815-0.post@n3.nabble.com>
	<9fa5f7c2-b6ca-ccfd-fded-284359f973c4@gelassene-pferde.biz>
	<1518443301602-0.post@n3.nabble.com>
	<d47d90fe-8719-70b6-c151-99fec0dbafd7@aklaver.com>
	<1518454625970-0.post@n3.nabble.com>

On 02/12/2018 08:57 AM, PegoraroF10 wrote:
> I know I need to think a different approach of what execute blocks does on
> Firebird.
> What I was trying to was just let them the way they were wrote, because
> their results are correct and with more time replace them to a new way.

That may not be necessary. As someone mentioned upstream you maybe able 
to replace the EXECUTE BLOCK with CREATE OR REPLACE FUNCTION and then do 
some clean up/additions to the enclosed code. To be more certain about 
this we would need to see a complete example of one of EXECUTE BLOCKs. 
If that is possible for security reasons, then a made example that does 
the same thing.

> 
> But, if that way cannot be used, I´ll probably write some hundred of
> functions right now and use them, because this way works for sure. And then,
> with more time to spend, I´ll replace them one by one.

Why? Once you create the functions and they do the task what is the 
purpose of replicating them and more to the point how would you?

> 
> 
> 
> 
> 
> --
> Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (23+ messages)  latest in thread

Message-ID: <45ecb017-06af-ed3c-dfdc-be32ce0df924@aklaver.com>
Permalink:  ../45ecb017-06af-ed3c-dfdc-be32ce0df924@aklaver.com/
Also on:    postgresql.org/message-id/45ecb017-06af-ed3c-dfdc-be32ce0df924@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, marcos@f10.com.br
  Subject: Re: execute block like Firebird does
  In-Reply-To: <45ecb017-06af-ed3c-dfdc-be32ce0df924@aklaver.com>
  References: <1518328644815-0.post@n3.nabble.com> <9fa5f7c2-b6ca-ccfd-fded-284359f973c4@gelassene-pferde.biz> <1518443301602-0.post@n3.nabble.com> <d47d90fe-8719-70b6-c151-99fec0dbafd7@aklaver.com> <1518454625970-0.post@n3.nabble.com> <45ecb017-06af-ed3c-dfdc-be32ce0df924@aklaver.com>

* 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