logical decoding output plugin

From: Torsten Förtsch <tfoertsch123(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: logical decoding output plugin
Date: 2016-12-10 21:34:02
Message-ID: CAKkG4_kPH2SyoPXygqvkDL8BHsE9DdFz=yZeU5RcNxpQ+eterg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am working on a logical decoding output plugin. I am only interested in
the changes in one particular table.

One way to check for the table would be to compare class_form->relname
and get_namespace_name(class_form->relnamespace). But I'd much prefer to
just compare the OID of the table.

Is there a cheap way to do something like "SELECT
'schema.table'::regclass::oid" that can be called in the startup callback?

Thanks,
Torsten

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2016-12-10 22:42:30 Re: Index size
Previous Message John R Pierce 2016-12-10 19:50:38 Re: Importing SQLite database