Re: Logical Decoding - Execute join query

From: Andres Freund <andres(at)anarazel(dot)de>
To: "hari(dot)prasath" <hari(dot)prasath(at)zohocorp(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Logical Decoding - Execute join query
Date: 2016-04-01 09:45:44
Message-ID: 20160401094544.GH9074@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2016-04-01 15:09:59 +0530, hari.prasath wrote:
> I tried to execute a join query using SPI_execute() in logical
> decoding part and got inconsistent values (i am referring it as
> inconsistent since it is returning the old values which is
> present at the postgresql server start).

You are not allowed to access non catalog tables in an output plugin. To quote the manual:
> Read only access to relations is permitted as long as only relations are
> accessed that either have been created by <command>initdb</command> in
> the <literal>pg_catalog</literal> schema, or have been marked as user
> provided catalog tables using

The reason for that is that we'd have to keep all rows in the tables, if
you wanted to be look at the state "in the past".

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ian Barwick 2016-04-01 10:40:17 Re: Correction for replication slot creation error message in 9.6
Previous Message Aleksander Alekseev 2016-04-01 09:45:08 Re: WIP: Access method extendability