pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Meyland Andersen <jma@agile.dk>
To: John DeSoi <desoi@pgedit.com>
Cc: Jan Meyland Andersen <jma@agile.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Some help with functions-syntax
Date: Thu, 18 Jan 2007 08:38:56 +0100 (CET)
Message-ID: <62559.82.143.192.130.1169105936.squirrel@mail.agile.dk> (raw)
In-Reply-To: <2AFADCD2-C72D-40FB-8B8E-D6FD023F2148@pgedit.com>
References: <1364.62.66.218.59.1169073199.squirrel@mail.agile.dk>
	<2AFADCD2-C72D-40FB-8B8E-D6FD023F2148@pgedit.com>

> There are two forms to iterate over the query:
>
> 1. FOR target IN query LOOP
> 2. FOR target IN EXECUTE text_expression LOOP

Thanks for your answer.

> My suggestion is to eliminate the string you created (_WHERECLAUSE) and
> add the proper conditions to the query expression you already have.

But the problem here is that the where-clause depends on the relkind. That
is why I'm trying to solve the problem this way.

How do I then write EXECUTE queries on multiple lines, if I go with this
solution?

Regards

Jan





view thread (4+ messages)  latest in thread

Message-ID: <62559.82.143.192.130.1169105936.squirrel@mail.agile.dk>
Permalink:  ../62559.82.143.192.130.1169105936.squirrel@mail.agile.dk/
Also on:    postgresql.org/message-id/62559.82.143.192.130.1169105936.squirrel@mail.agile.dk

 · 

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-sql@postgresql.org
  Cc: jma@agile.dk, desoi@pgedit.com
  Subject: Re: Some help with functions-syntax
  In-Reply-To: <62559.82.143.192.130.1169105936.squirrel@mail.agile.dk>

* 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