Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fS78u-0001Np-PF for pgsql-jdbc@arkaria.postgresql.org; Sun, 10 Jun 2018 20:40:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fS78s-0000X3-O9 for pgsql-jdbc@arkaria.postgresql.org; Sun, 10 Jun 2018 20:40:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fS78s-0000Wt-DY for pgsql-jdbc@lists.postgresql.org; Sun, 10 Jun 2018 20:40:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fS78q-0003o5-7i for pgsql-jdbc@postgresql.org; Sun, 10 Jun 2018 20:40:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w5AKekv1022548; Sun, 10 Jun 2018 16:40:46 -0400 From: Tom Lane To: Chuck Davis cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC In-reply-to: References: Comments: In-reply-to Chuck Davis message dated "Sun, 10 Jun 2018 13:24:55 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22546.1528663246.1@sss.pgh.pa.us> Date: Sun, 10 Jun 2018 16:40:46 -0400 Message-ID: <22547.1528663246@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Chuck Davis 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