On Tue, 28 Mar 2023 at 10:28, Sebastien Flaesch <sebastien.flaesch@xxxxxxx> wrote:
Is the CTID a good choice?
I think if you're honest with yourself you already know the answer to this question. The only real solution is to update the legacy code to use the primary key, or (if that's not possible) change the table definition to add your own indexed BIGSERIAL value called "ROWID" to the rows and use that instead (assuming it will be large enough).
Geoff