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 1hR2GY-0006iY-Uu for pgsql-general@arkaria.postgresql.org; Wed, 15 May 2019 22:20:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hR2GX-0003z2-A2 for pgsql-general@arkaria.postgresql.org; Wed, 15 May 2019 22:20:49 +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 1hR2GW-0003y8-Fd for pgsql-general@lists.postgresql.org; Wed, 15 May 2019 22:20:49 +0000 Received: from mail-oln040092009038.outbound.protection.outlook.com ([40.92.9.38] helo=NAM04-BN3-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hR2GS-000425-Go for pgsql-general@lists.postgresql.org; Wed, 15 May 2019 22:20:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v1PmoihRxsGkdoGWou7iKVow9fO5CgIm+W+nvECC/7U=; b=UW6FhiV+mXIhC37lqu7VbPDZLGUWzrhBQrGEmo3ds0Bd6izTsx4he+vIKG5y3a92F+JsQJ4pxvITPiQ+9BXiH7KKcbR3ujzhl5UP/TgibIxyWI0bTkCtTXqGnlJcjT9AwXIdu2htv7NV5WwvYsgMwyjav2g4PgUZmEfpm2LTu9ANr7J4BYsxwQyZzaMiOpwBAbBUoiK88o5gU6T3ysHMXlSG3OFvnRmvtRu4YMwZzgq2IpUpcXsSbWPytPf8Mekww79atqCjJJDO/UhyrMcra/l2e14Osno9MFJiAQ0VM5cka99vRU4iKxcnuOrzEsry38W5vH8PKyHVm3Bddnq5qg== Received: from SN1NAM04FT025.eop-NAM04.prod.protection.outlook.com (10.152.88.56) by SN1NAM04HT160.eop-NAM04.prod.protection.outlook.com (10.152.89.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.15; Wed, 15 May 2019 22:20:42 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com (10.152.88.51) by SN1NAM04FT025.mail.protection.outlook.com (10.152.88.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.15 via Frontend Transport; Wed, 15 May 2019 22:20:42 +0000 Received: from BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::d9fb:bca2:3018:3513]) by BYAPR08MB5014.namprd08.prod.outlook.com ([fe80::d9fb:bca2:3018:3513%5]) with mapi id 15.20.1900.010; Wed, 15 May 2019 22:20:42 +0000 From: Julie Nishimura To: Adrian Klaver , "David G. Johnston" CC: "pgsql-general@lists.postgresql.org" Subject: Re: default_tablespace in 8.3 postgresql Thread-Topic: default_tablespace in 8.3 postgresql Thread-Index: AQHVC1LRf5EjIXLPnkq3LH4ZEkrRWqZsl38AgAAAObeAAAmfAIAAB4T0gAAF7oCAAABqd4AAAcSAgAADQxiAAAT9gIAAAWw6gAAGHYCAAAFXng== Date: Wed, 15 May 2019 22:20:42 +0000 Message-ID: References: <0ab4e5df-a4a4-6a02-6b7d-a8e298b38691@aklaver.com> ,<7174210f-991c-3f9c-c4b6-86c9a1325569@aklaver.com> In-Reply-To: <7174210f-991c-3f9c-c4b6-86c9a1325569@aklaver.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:0F52BC2DCEC574982A392C6927AB68AD0C74EFC61DD720197EC4088DA59837AF;UpperCasedChecksum:C91CD475FF9E8A3B3AA4E8C66240CD0BF79143CF4E175351B4CFF670FB8490C3;SizeAsReceived:7690;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [KTPoxTaDsO0dMdln6K2s3ugHuwpGf0h3] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:SN1NAM04HT160; x-ms-traffictypediagnostic: SN1NAM04HT160: x-microsoft-antispam-message-info: /kH1sT8ILtBjUGG7PiM/fTdGdB9FrDURl8kqUEHK3Qp4g19HeYG7frmM1i6AHwBh2Gwubo3nKkZ0Hp6GJks8XBZp5HgG15hS1vxgBOeKxjlrXTW+T03FnxblEgFmKZtqtQ1JsxXuGp3VVNJR+VLyrKoApMPZ5TfE6KQxq8gh3Ni63WWuzaUhc2JZaoq//Gr0 Content-Type: multipart/alternative; boundary="_000_BYAPR08MB5014ABB8AAEB44E5F6275595AC090BYAPR08MB5014namp_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 81e95e93-cb30-4238-5f2a-08d6d9839178 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 May 2019 22:20:42.3582 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM04HT160 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_BYAPR08MB5014ABB8AAEB44E5F6275595AC090BYAPR08MB5014namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable that makes sense, thanks! ________________________________ From: Adrian Klaver Sent: Wednesday, May 15, 2019 3:15 PM To: Julie Nishimura; David G. Johnston Cc: pgsql-general@lists.postgresql.org Subject: Re: default_tablespace in 8.3 postgresql On 5/15/19 3:01 PM, Julie Nishimura wrote: > No, I did not have them at all in my script. I did not touch neither > these three dbs, nor like some others that I did not intend to alter, > but they are altered regardless. Or unless this is what pg_database > reports back to me... What is even more interesting, if I use PGAdmin > for one of the dbs that I was not intended to alter and leave it on > vol3, this is what it shows to me now. Please note, it shows both - > "Default tablespace" (as vol3), and "default_tablespace" (as vol4)... Hmm= ... One is from the postgresql.conf setting(vol3). The other is from the database default_tablespace setting. > > > > > ------------------------------------------------------------------------ > *From:* Adrian Klaver > *Sent:* Wednesday, May 15, 2019 2:48 PM > *To:* Julie Nishimura; David G. Johnston > *Cc:* pgsql-general@lists.postgresql.org > *Subject:* Re: default_tablespace in 8.3 postgresql > On 5/15/19 2:45 PM, Julie Nishimura wrote: >> Adrian, only first 3 (which are template0, postgres, control). Rest of >> them are set to vol4. > > Do the script(s) reflect this? > > In other words did you have a script for each and every database and was > the default_tablespace set different in some of them? > >> >> The only explanation I would have that all of those databases which have >> tablespace vol4 as default were copied from template1 without explicitly >> specified tablespace name, and "control" was created with the explicit >> tablespace in it?... I dont have any other good explanations... >> >> ------------------------------------------------------------------------ >> *From:* Adrian Klaver >> *Sent:* Wednesday, May 15, 2019 2:18 PM >> *To:* Julie Nishimura; David G. Johnston >> *Cc:* pgsql-general@lists.postgresql.org >> *Subject:* Re: default_tablespace in 8.3 postgresql >> On 5/15/19 2:15 PM, Julie Nishimura wrote: >>> Sure, thank you guys! >>> >>> CREATE TABLESPACE vol4 >>> OWNER postgres >>> LOCATION '/data/vol4'; >>> >>> ALTER DATABASE tables_ericb >>> SET default_tablespace =3D 'vol4'; >>> ALTER DATABASE conversion_feasibility_too >>> SET default_tablespace =3D 'vol4'; >>> >>> ... and so on for 60 dbs... >>> >>> but not for all 70+ >> >> But it was not for all 70+. The control db still is still set at vol1. >> >> Are there others not set to vol4? >> >> >> -- >> Adrian Klaver >> adrian.klaver@aklaver.com > > > -- > Adrian Klaver > adrian.klaver@aklaver.com -- Adrian Klaver adrian.klaver@aklaver.com --_000_BYAPR08MB5014ABB8AAEB44E5F6275595AC090BYAPR08MB5014namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
that makes sense, thanks!


From: Adrian Klaver <a= drian.klaver@aklaver.com>
Sent: Wednesday, May 15, 2019 3:15 PM
To: Julie Nishimura; David G. Johnston
Cc: pgsql-general@lists.postgresql.org
Subject: Re: default_tablespace in 8.3 postgresql
 
On 5/15/19 3:01 PM, Julie Nishimura wrote:
> No, I did not have them at all in my script. I did not touch neither <= br> > these three dbs, nor like some others that I did not intend to alter, =
> but they are altered regardless. Or unless this is what pg_database > reports back to me... What is even more interesting, if I use PGAdmin =
> for one of the dbs that I was not intended to alter and leave it on > vol3, this is what it shows to me now. Please note, it shows both -&nb= sp;
> "Default tablespace" (as vol3), and "default_tablespace= " (as vol4)... Hmm...

One is from the postgresql.conf setting(vol3).
The other is from the database default_tablespace setting.

>
>
>
>
> ----------------------------------------------------------------------= --
> *From:* Adrian Klaver <adrian.klaver@aklaver.com>
> *Sent:* Wednesday, May 15, 2019 2:48 PM
> *To:* Julie Nishimura; David G. Johnston
> *Cc:* pgsql-general@lists.postgresql.org
> *Subject:* Re: default_tablespace in 8.3 postgresql
> On 5/15/19 2:45 PM, Julie Nishimura wrote:
>> Adrian, only first 3 (which are template0, postgres, control). Res= t of
>> them are set to vol4.
>
> Do the script(s) reflect this?
>
> In other words did you have a script for each and every database and w= as
> the default_tablespace set different in some of them?
>
>>
>> The only explanation I would have that all of those databases whic= h have
>> tablespace vol4 as default were copied from template1 without expl= icitly
>> specified tablespace name, and "control" was created wit= h the explicit
>> tablespace in it?... I dont have any other good explanations... >>
>> ------------------------------------------------------------------= ------
>> *From:* Adrian Klaver <adrian.klaver@aklaver.com>
>> *Sent:* Wednesday, May 15, 2019 2:18 PM
>> *To:* Julie Nishimura; David G. Johnston
>> *Cc:* pgsql-general@lists.postgresql.org
>> *Subject:* Re: default_tablespace in 8.3 postgresql
>> On 5/15/19 2:15 PM, Julie Nishimura wrote:
>>> Sure, thank you guys!
>>>
>>> CREATE TABLESPACE vol4
>>>   OWNER postgres
>>>   LOCATION '/data/vol4';
>>>
>>> ALTER DATABASE tables_ericb
>>> SET default_tablespace =3D 'vol4';
>>>   ALTER DATABASE conversion_feasibility_too
>>>   SET default_tablespace =3D 'vol4';
>>>
>>> ... and so on for 60 dbs...
>>>
>>> but not for all 70+
>>
>> But it was not for all 70+. The control db still is still set = at vol1.
>>
>> Are there others not set to vol4?
>>
>>
>> --
>> Adrian Klaver
>> adrian.klaver@aklaver.com
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com


--
Adrian Klaver
adrian.klaver@aklaver.com
--_000_BYAPR08MB5014ABB8AAEB44E5F6275595AC090BYAPR08MB5014namp_--