Re: postgres not deleting trigger file

Поиск
Список
Период
Сортировка
От jkilborn
Тема Re: postgres not deleting trigger file
Дата
Msg-id 1438694927835-5860802.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: postgres not deleting trigger file  (John Scalia <jayknowsunix@gmail.com>)
Ответы Re: postgres not deleting trigger file  (John Scalia <jayknowsunix@gmail.com>)
Re: postgres not deleting trigger file  (Jerry Sievers <gsievers19@comcast.net>)
Список pgsql-admin
Thanks for the reply.

I think the problem is permissions. The fact that the pgpool runs as root
user, its likely that postgres can’t remove the created trigger file.

I ended up doing two things in my pgp failover_stream.sh script, which
creates the file:
/bin/ssh -T $new_master /bin/touch $trigger_file
    /bin/ssh -T $new_master chown postgres $trigger_file

Seems with changing the ownership of the trigger file, postgres can now
delete the file. Not sure why I’m having to do this, as I haven’t seen
anyone else encounter this issue.

Anyway, with these changes, it appears to be working correctly.

Thanks for the response.

-Jim




--
View this message in context: http://postgresql.nabble.com/postgres-not-deleting-trigger-file-tp5860795p5860802.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.


В списке pgsql-admin по дате отправления:

Предыдущее
От: John Scalia
Дата:
Сообщение: Re: postgres not deleting trigger file
Следующее
От: John Scalia
Дата:
Сообщение: Re: postgres not deleting trigger file