public inbox for [email protected]  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <[email protected]>
To: Thiemo Kellner <[email protected]>
Cc: [email protected]
Subject: Re: Record last SELECT on a row?
Date: Wed, 17 Dec 2025 12:23:31 -0500
Message-ID: <CAKAnmmJP4LN7tJtEW7GtSJ7ztOVf3kak1TZD_8KxAakk1b0fBw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>

On Wed, Dec 17, 2025 at 12:14 PM Thiemo Kellner <[email protected]>
wrote:

> I wonder whether a view calling a set returning function would be a viable
> option. Within the function you execute the actual query twice. Once to
> merge selected pk into a protocol table and once for the return of the data
> set.
>

The view would be sucking in the entire table every time . Maybe not a big
deal as this is a very tiny table.

I think Joe wins this thread with the RLS idea however.


Cheers,
Greg

--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support


view thread (2+ messages)

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Record last SELECT on a row?
  In-Reply-To: <CAKAnmmJP4LN7tJtEW7GtSJ7ztOVf3kak1TZD_8KxAakk1b0fBw@mail.gmail.com>

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

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