Is CREATE TABLE non-blocking ?

From: Benjamin Dugast <bdugast(at)excilys(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Is CREATE TABLE non-blocking ?
Date: 2014-07-23 10:33:06
Message-ID: CAB9ggRr-DJXb6ha7=KDd6W1WZAdcNkmULR0fv1J_TS3WO5+VGw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message hubert depesz lubaczewski 2014-07-23 13:43:17 Re: Is CREATE TABLE non-blocking ?
Previous Message rawi 2014-06-13 14:49:54 Re: cannot install 9.4 on trusty because of the libpq5 version