search_path for replica-mode - Mailing list pgsql-general

From André Kutepow
Subject search_path for replica-mode
Date
Msg-id ced70356-eec8-7d2f-b039-6e789698842b@mail.ru
Whole thread Raw
List pgsql-general
There is a trigger in the database
SET search_path TO "$user", public;

CREATE OR REPLACE FUNCTION art__a_iu_func()
BEGIN
  INSERT INTO table_z...   --»table_z« is in schema public
END;

CREATE OR REPLACE TRIGGER art__a_iu
    AFTER INSERT OR UPDATE OF ak_nr
    ON art
    FOR EACH ROW
    EXECUTE FUNCTION art__a_iu_func();
In a regular trigger, it works great!
But, if I announce it, as:
ALTER TABLE art ENABLE REPLICA TRIGGER art__a_iu;
then I get an error:
FEHLER:  Relation »table_z« existiert nicht bei Zeichen xxx
ANFRAGE:  INSERT INTO table_z...

why does'nt work the search_path for replica-mode?
is it made specifically or is it a bug?
How else can I set the search_path for replica-mode?

pgsql-general by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Query regarding managing Replication
Next
From: André Kutepow
Date:
Subject: search_path for replica-mode