pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: hamann.w@t-online.de
To: pgsql-general@lists.postgresql.org
Subject: SQL questiom
Date: 21 Jan 2022 10:13:57 -0000
Message-ID: <wolfgang-1220121111357.A0114263@linux-tuxedo> (raw)



Hi,

I am using a query pretty often that looks like
SELECT <<fixed columns from tables>> WHERE <<fixed join statements>> AND
<<actual select criterion>>

Is there a way (with sql or plpgsql)  to convert that into
SELECT myquery('<<actual select criterion>>')

Kind regards
Wolfgang Hamann






view thread (3+ messages)  latest in thread

Message-ID: <wolfgang-1220121111357.A0114263@linux-tuxedo>
Permalink:  ../wolfgang-1220121111357.A0114263@linux-tuxedo/
Also on:    postgresql.org/message-id/wolfgang-1220121111357.A0114263@linux-tuxedo

 · 

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: hamann.w@t-online.de
  Subject: Re: SQL questiom
  In-Reply-To: <wolfgang-1220121111357.A0114263@linux-tuxedo>
  References: <wolfgang-1220121111357.A0114263@linux-tuxedo>

* 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