Re: Is CREATE TABLE non-blocking ?
От | Benjamin Dugast |
---|---|
Тема | Re: Is CREATE TABLE non-blocking ? |
Дата | |
Msg-id | CAB9ggRrAHJiVGPBPeYt0b5iDfa88aTML2Y2VwoEgQgXjPUrmFA@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Is CREATE TABLE non-blocking ? (hubert depesz lubaczewski <depesz@gmail.com>) |
Ответы |
Re: Is CREATE TABLE non-blocking ?
Re: Is CREATE TABLE non-blocking ? |
Список | pgsql-sql |
We finally solved our problem,
Thanks for your help.
2014-07-23 15:43 GMT+02:00 hubert depesz lubaczewski <depesz@gmail.com>:
depeszNo, it's not.What might happen, though, is that you call your callback before the transaction with create table got committed.On Wed, Jul 23, 2014 at 12:33 PM, Benjamin Dugast <bdugast@excilys.com> wrote:What can we do to avoid this problem?We tried to use a Thread.sleep() just before the insert and it works but we can't stay with this.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.Hello,We have an issue with tables creations in our application.
В списке pgsql-sql по дате отправления: