Is CREATE TABLE non-blocking ?

Поиск
Список
Период
Сортировка
От Benjamin Dugast
Тема Is CREATE TABLE non-blocking ?
Дата
Msg-id CAB9ggRr-DJXb6ha7=KDd6W1WZAdcNkmULR0fv1J_TS3WO5+VGw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Is CREATE TABLE non-blocking ?  (hubert depesz lubaczewski <depesz@gmail.com>)
Re: Is CREATE TABLE non-blocking ?  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-sql
Hello,

We have an issue with tables creations in our application.

We think CREATE TABLE returns before the tables are created. Because this looks like a non-blocking operation, our inserts (in a callback) are actually happening before the tables are created.

We tried to use a Thread.sleep() just before the insert and it works but we can't stay with this.

What can we do to avoid this problem?

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

Предыдущее
От: rawi
Дата:
Сообщение: Re: cannot install 9.4 on trusty because of the libpq5 version
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: Is CREATE TABLE non-blocking ?