So the solution was a simple problem in our program that send some INSERT requests before we actually CREATE our tables.
We didn't figured out this problem on our first test system because it was really fast. On our second test environment that is much slower, the application shut down instantly because of the tables were not created.
What might happen, though, is that you call your callback before the transaction with create table got committed.
depesz
On Wed, Jul 23, 2014 at 12:33 PM, Benjamin Dugast <bdugast@excilys.com> wrote:
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.