pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julie Nishimura <juliezain@hotmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: default_tablespace in 8.3 postgresql
Date: Wed, 15 May 2019 22:01:34 +0000
Message-ID: <BYAPR08MB50141FFDF13F95E37EF1B40BAC090@BYAPR08MB5014.namprd08.prod.outlook.com> (raw)
In-Reply-To: <0ab4e5df-a4a4-6a02-6b7d-a8e298b38691@aklaver.com>
References: <BYAPR08MB50140E0F61E51CAB861B9DEAAC090@BYAPR08MB5014.namprd08.prod.outlook.com>
	<b2823aab-d8f7-e145-2065-aba20bb7a23b@aklaver.com>
	<BYAPR08MB50141ABB3D3816BDA9D0F583AC090@BYAPR08MB5014.namprd08.prod.outlook.com>
	<CAKFQuwZ3Mfzq_jNbaLpvij_yx7OHv_5E5kW5aFvYZcY_x6-GVQ@mail.gmail.com>
	<BYAPR08MB50145E1F8A325628D62870F5AC090@BYAPR08MB5014.namprd08.prod.outlook.com>
	<ba93d346-fdfa-ce68-be91-7b3ecc20f543@aklaver.com>
	<BYAPR08MB50144C4CA7DAE9B80BB3ACE5AC090@BYAPR08MB5014.namprd08.prod.outlook.com>
	<f06cdac0-9506-6c22-7e2b-d62d364b0412@aklaver.com>
	<BYAPR08MB50142F1BB40D2FE3AECCED94AC090@BYAPR08MB5014.namprd08.prod.outlook.com>
	<0ab4e5df-a4a4-6a02-6b7d-a8e298b38691@aklaver.com>

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...
[cid:45dce903-fa47-4e59-b3af-f07fa991f55b]



________________________________
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). 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 <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 = 'vol4';
>>   ALTER DATABASE conversion_feasibility_too
>>   SET default_tablespace = '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

Attachments:

image.png (image/png, 21.9K) download view image

view thread (21+ messages)  latest in thread

Message-ID: <BYAPR08MB50141FFDF13F95E37EF1B40BAC090@BYAPR08MB5014.namprd08.prod.outlook.com>
Permalink:  ../BYAPR08MB50141FFDF13F95E37EF1B40BAC090@BYAPR08MB5014.namprd08.prod.outlook.com/
Also on:    postgresql.org/message-id/BYAPR08MB50141FFDF13F95E37EF1B40BAC090@BYAPR08MB5014.namprd08.prod.outlook.com

 · 

reply

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-general@postgresql.org
  Cc: juliezain@hotmail.com, adrian.klaver@aklaver.com, david.g.johnston@gmail.com
  Subject: Re: default_tablespace in 8.3 postgresql
  In-Reply-To: <BYAPR08MB50141FFDF13F95E37EF1B40BAC090@BYAPR08MB5014.namprd08.prod.outlook.com>
  References: <BYAPR08MB50140E0F61E51CAB861B9DEAAC090@BYAPR08MB5014.namprd08.prod.outlook.com> <b2823aab-d8f7-e145-2065-aba20bb7a23b@aklaver.com> <BYAPR08MB50141ABB3D3816BDA9D0F583AC090@BYAPR08MB5014.namprd08.prod.outlook.com> <CAKFQuwZ3Mfzq_jNbaLpvij_yx7OHv_5E5kW5aFvYZcY_x6-GVQ@mail.gmail.com> <BYAPR08MB50145E1F8A325628D62870F5AC090@BYAPR08MB5014.namprd08.prod.outlook.com> <ba93d346-fdfa-ce68-be91-7b3ecc20f543@aklaver.com> <BYAPR08MB50144C4CA7DAE9B80BB3ACE5AC090@BYAPR08MB5014.namprd08.prod.outlook.com> <f06cdac0-9506-6c22-7e2b-d62d364b0412@aklaver.com> <BYAPR08MB50142F1BB40D2FE3AECCED94AC090@BYAPR08MB5014.namprd08.prod.outlook.com> <0ab4e5df-a4a4-6a02-6b7d-a8e298b38691@aklaver.com> <BYAPR08MB50141FFDF13F95E37EF1B40BAC090@BYAPR08MB5014.namprd08.prod.outlook.com>

* 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