Re: Does slonik EXECUTE SCRIPT call waits for comands termination?

Поиск
Список
Период
Сортировка
От Dmitry Koterov
Тема Re: Does slonik EXECUTE SCRIPT call waits for comands termination?
Дата
Msg-id d7df81620706010241ka99089dpfdbcb2711f8a9265@mail.gmail.com
обсуждение исходный текст
Ответ на Does slonik EXECUTE SCRIPT call waits for comands termination?  ("Dmitry Koterov" <dmitry@koterov.ru>)
Список pgsql-general
Sorry for mistake, wrong mailing list.

On 6/1/07, Dmitry Koterov <dmitry@koterov.ru> wrote:
Hello.

Seems when I use EXECUTE SCRIPT and slonik reports PGRES_TUPLES_OK updates may NOT be finished yet on all slaves.
I ran a long ALTER TABLE statement (about 3 minutes), master updated immediately after I had seen PGRES_TUPLES_OK, but slave - 10 or more minutes later.

So, the questions are:

1. THE MAIN question: is it possible to ask slonik to wait untill all scheme changes were propogated to all slaves after a slonik call?

2. If slonik updates slaves not immediately, but via event creation, why does it still need to know an information about ALL database hosts, not only about the master database? I have to enumerate all slave hosts in slonik calls:

cluster name = my_cluster;
 node 1 admin conninfo='host=host1 dbname=m user=slony port=5432 password=**';
 node 2 admin conninfo='host=host2 dbname=m user=slony port=5432 password=**';
 node 3 admin conninfo='host=host3 dbname=m user=slony port=5432 password=**';
 ...
  execute script (
    set id = 1,
    filename = '/tmp/e0H7Aa03Fh',
    event node = 1
  );

But if a schema changes are propogated via events, theoretically we have to know only master's address...

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

Предыдущее
От: Tom Allison
Дата:
Сообщение: Re: left outer join and values()
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: how to use array with "holes" ?