Re: Dynamically filtering a CTE?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: "W(dot) Trevor King" <wking(at)tremily(dot)us>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dynamically filtering a CTE?
Date: 2018-04-20 00:28:00
Message-ID: CAKFQuwY36yat8Ycf_Ha6z25sZnNYMH9rHmTsG3QfkDZt1zX2XA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, April 19, 2018, W. Trevor King <wking(at)tremily(dot)us> wrote:

> Is there
> an idiomatic way to approach this problem?
>
>
I would use pl/pgsql as the language and build a query using a combination
of text literals and the format() function - invoking via pl/pgsql's
EXECUTE command.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message PegoraroF10 2018-04-20 01:49:54 Re: Problem with trigger makes Detail record be invalid
Previous Message W. Trevor King 2018-04-20 00:00:55 Dynamically filtering a CTE?