public inbox for [email protected]  
help / color / mirror / Atom feed
Record last SELECT on a row?
2+ messages / 2 participants
[nested] [flat]

* Record last SELECT on a row?
@ 2025-12-17 17:14 Thiemo Kellner <[email protected]>
  2025-12-17 17:23 ` Re: Record last SELECT on a row? Greg Sabino Mullane <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Thiemo Kellner @ 2025-12-17 17:14 UTC (permalink / raw)
  To: [email protected]

Hi

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.

Cheers

Thiemo


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Record last SELECT on a row?
  2025-12-17 17:14 Record last SELECT on a row? Thiemo Kellner <[email protected]>
@ 2025-12-17 17:23 ` Greg Sabino Mullane <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Greg Sabino Mullane @ 2025-12-17 17:23 UTC (permalink / raw)
  To: Thiemo Kellner <[email protected]>; +Cc: [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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-12-17 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-17 17:14 Record last SELECT on a row? Thiemo Kellner <[email protected]>
2025-12-17 17:23 ` Greg Sabino Mullane <[email protected]>

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