Is CREATE TABLE non-blocking ? - Mailing list pgsql-sql

From Benjamin Dugast
Subject Is CREATE TABLE non-blocking ?
Date
Msg-id CAB9ggRr-DJXb6ha7=KDd6W1WZAdcNkmULR0fv1J_TS3WO5+VGw@mail.gmail.com
Whole thread Raw
Responses Re: Is CREATE TABLE non-blocking ?
Re: Is CREATE TABLE non-blocking ?
List 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 by date:

Previous
From: rawi
Date:
Subject: Re: cannot install 9.4 on trusty because of the libpq5 version
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Is CREATE TABLE non-blocking ?