Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzjtD-0001nd-IN for pgsql-general@arkaria.postgresql.org; Fri, 01 Mar 2019 15:15:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gzjtC-0002vB-3R for pgsql-general@arkaria.postgresql.org; Fri, 01 Mar 2019 15:15:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzjtA-0002v1-T1 for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 15:15:53 +0000 Received: from ns601-vm0.bullet.mail.ssk.yahoo.co.jp ([182.22.91.49]) by makus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1gzjt1-00047I-LO for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 15:15:51 +0000 Received: from [182.22.66.105] by ns601.bullet.mail.ssk.yahoo.co.jp with NNFMP; 01 Mar 2019 15:15:39 -0000 Received: from [182.22.91.132] by t603.bullet.mail.ssk.yahoo.co.jp with NNFMP; 01 Mar 2019 15:15:39 -0000 Received: from [127.0.0.1] by omp605.mail.ssk.yahoo.co.jp with NNFMP; 01 Mar 2019 15:15:39 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 206438.48647.bm@omp605.mail.ssk.yahoo.co.jp X-YMail-OSG: 3Ut0olEVM1kHG8lkZdLc_D1TxRTwfcdOeEEiGJOls7SPHw0l.DkaZ061w1vU_L7 EfhwWnOQXDe8nKHEhNpxhU7N2v383C48wGRibmvFUp.rKAPNTS2TWw0QuhwlcIEytT0cfZmiG7CA hgfLuiRzMugRU4OydgyGRgLSV5Ht1YI_hqx6GsjMSDX06f5syuI7sKUAsJXmQC22UpSLMLfAqcib c1eO4i80rvVgvpMFkJJgIT3NAeShFLI3zs5OtTZED3WXyvRZ4H28E4t_tgKU46B.XKmkb7AjrtlH rRXWj89SJGMu5MimNUwwsU9TtAJxXp_W6HQZDEpevTfcJRqsRYswI9_gRcoNa45rEtJwrRaDqjMk BHD6_RRkXh11p29IOiJfSoFnVQS4dGVEb0U32yPFLW9Amna6FBNvX7rtaF9nqvaBsywdfzlRBjhK S7Boy6OyFEJ7.YoWfqINLedahQALzzUwT33hFvaryfKAJ2RdDMEroN2.1Zx2U16uR598HWLiCALz yH2dkukyKE7zTqk1uz.s.yyKjuPuhVwZ_602_MxbtEk5ABD6ss.MmJQe1mskHF13IwPhfjyVBY_8 VnQ2W6MQfbwjmkZi6lE7fvBg8dE7IZgo0y6VQ4u4aAJiz3_7AH7942kW.rxTrJg0pgbpI_AYfY.2 wH4u3vhH1LNrK4q6_oN8- Received: from jws700005.mail.kks.yahoo.co.jp by sendmailws512.mail.kks.yahoo.co.jp; Sat, 02 Mar 2019 00:15:38 +0000; 1551453338.509 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1551453339; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=4A0Z5GZIsqz9aPZunnKbkwRhc4v6TUkrD8XwaKMoTmY=; b=ivHRAErJjJoswEzUL51kGxZR7NdVHSipRZv1kudT98CUJkOxO+rvf75R45FsSoVM 8IAzoIguv+07Ku8Rep4UuNLlZqpOkCfCy05i8B1PoZXaSJSbpBOiZ3Ydk0WSSTEPwod S+pcpsD33vWPXTkTrwaxft6IyZkNYSKBFKpO026A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Cc:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iXSgWFxDafcmMKZeQWHTYXFVcpogiGGok9jnSxvmpFWAwCdSrXVhBD8FueLkDCXS BlekiEhnA7m9YYxs9rs+HlYwUj4MVg4KekP7JGnFWx2hU+kYvQcny9ZDUtWeAd3A1mp JQA6F6kV/6yFXwTVg3eoX/l9/j6mjGL2+XALFXx4=; Date: Sat, 2 Mar 2019 00:15:37 +0900 (JST) From: Reply-To: To: Tom Lane Cc: "pgsql-general@lists.postgresql.org" Message-ID: <871505622.1579923.1551453337845.JavaMail.yahoo@mail.yahoo.co.jp> In-Reply-To: <4099.1551399886@sss.pgh.pa.us> References: <620929187.763288.1551399043803.JavaMail.yahoo.ref@mail.yahoo.co.jp> <620929187.763288.1551399043803.JavaMail.yahoo@mail.yahoo.co.jp> <4099.1551399886@sss.pgh.pa.us> Subject: Re: Mind of its own? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Length: 1516 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk JD, IB, TL: Yes!!! I found the whole bunch of tables in template 1! It's so liberating.=C2=A0 Thank you. ----- Original Message ----- > From: Tom Lane > To: s400t@yahoo.co.jp > Cc: "pgsql-general@lists.postgresql.org" > Date: 2019/2/28, Thu 17:24 > Subject: Re: Mind of its own? >=20 >& lt;s400t@yahoo.co.jp> writes: >> I am using Postgresql 9.6, and the latest phppgadmin. OS is Debian 9.6. >=20 >> 1. Created a database. >> 2. Created tables inside that database. >> 3. Dropped that database. >=20 >> Now, what happens is when I create another database with the same name = or=20 > different name, all those tables are already inside that database!!! I ha= ve not=20 > run the table create script.=C2=A0 >=20 > I think you created some tables in the "template1" database, which is > (by default) what CREATE DATABASE clones to make a new DB.=C2=A0 Duplicat= ing > its contents is considered a feature not a bug. >=20 > You could manually clean out template1, or if that seems painful, > you could drop it and recreate it by cloning template0 (see > CREATE DATABASE's TEMPLATE option).=C2=A0 template0 exists precisely > to be a virgin empty database for this sort of purpose. >=20 > (There is an interlock to prevent you from dropping either > of these template databases accidentally.=C2=A0 Overriding that is > left as an exercise for the student.) >=20 > =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 regards, tom lan= e >=20