From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chuck Davis <cjgunzel@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC
Date: Sun, 10 Jun 2018 16:40:46 -0400
Message-ID: <22547.1528663246@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHf=Y_Y1Yn559LKWPc9Waw_MEdBTF9Ce2bsbptBmfNZB3HKPKA@mail.gmail.com>
References: <CAHf=Y_Y1Yn559LKWPc9Waw_MEdBTF9Ce2bsbptBmfNZB3HKPKA@mail.gmail.com>
Chuck Davis <cjgunzel@gmail.com> writes:
> I created a new, empty database and I want to test whether a table
> exists or not.
Are you sure the DB is in fact empty?
> The only thing I can think of is that the information_schema is
> actually for the cluster.
It is not.
> I have other databases in the cluster that
> do have an entities table.
I'm betting that you created such a table in template1, so that it's
getting cloned into new databases by CREATE DATABASE.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, cjgunzel@gmail.com
Subject: Re: JDBC
In-Reply-To: <22547.1528663246@sss.pgh.pa.us>
References: <CAHf=Y_Y1Yn559LKWPc9Waw_MEdBTF9Ce2bsbptBmfNZB3HKPKA@mail.gmail.com> <22547.1528663246@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox