Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
On 5/15/19 5:29 PM, Julie Nishimura wrote: Guys, thank you everybody who tried to solve this mystery! It is solved now. I went through the logs and found those "alter database" commands, based on host and time, I've just found shell script which was executing from crontab and setting all databa

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
nes and control) default_tablespace to the emptiest volume... Thanks everybody... From: Adrian Klaver Sent: Wednesday, May 15, 2019 3:35 PM To: Julie Nishimura; David G. Johnston Cc: pgsql-general@lists.postgresql.org Subject: Re: default_tablespace in 8.3 postgresql

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
On 5/15/19 3:28 PM, Julie Nishimura wrote: Nope, I did not... pg_roles only shows "rolconfig" as {default_transaction_read_only=true} for some users... The only other commands I ran between creation of tablespace and alter dbs are: grant all on tablespace vol4 to public; grant create on ta

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
to public; From: Adrian Klaver Sent: Wednesday, May 15, 2019 3:22 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 scri

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
licitly... Sigh From: David G. Johnston <mailto:david.g.johns...@gmail.com> Sent: Wednesday, May 15, 2019 1:23 PM To: Julie Nishimura Cc: Adrian Klaver; pgsql-general@lists.postgresql.org<mailto:pgsql-general@lists.postgresql.org> Subject: Re: default_tablespace in 8.3 postgresql

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
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 inter

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
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

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
... 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

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
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). Re

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
planations... *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

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
as 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_tablesp

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
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

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
60 dbs... but not for all 70+ From: Adrian Klaver Sent: Wednesday, May 15, 2019 2:11 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 1:57 PM, Julie Nishimura wrote: > This puzzles me too!

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
g *Subject:* Re: default_tablespace in 8.3 postgresql On Wed, May 15, 2019 at 1:01 PM Julie Nishimura <mailto:juliez...@hotmail.com>> wrote: However, since I have modified template1 (and most likely, those databases were copied from it in the past), it changed default_parameter

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Rob Sargent
Johnston *Sent:* Wednesday, May 15, 2019 1:23 PM *To:* Julie Nishimura *Cc:* Adrian Klaver; pgsql-general@lists.postgresql.org *Subject:* Re: default_tablespace in 8.3 postgresql On Wed, May 15, 2019 at 1:01 PM Julie Nishimura <mailto:juliez...@hotmail.com>> wrote: However, since I have modi

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
Wednesday, May 15, 2019 1:23 PM To: Julie Nishimura Cc: Adrian Klaver; pgsql-general@lists.postgresql.org Subject: Re: default_tablespace in 8.3 postgresql On Wed, May 15, 2019 at 1:01 PM Julie Nishimura mailto:juliez...@hotmail.com>> wrote: However, since I have modified template1 (a

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
Adrian Klaver *Sent:* Wednesday, May 15, 2019 12:47 PM *To:* Julie Nishimura; pgsql-general@lists.postgresql.org; pgsql-general *Subject:* Re: default_tablespace in 8.3 postgresql On 5/15/19 12:39 PM, Julie Nishimura wrote: Hello, I have created new tablespace on a new drive yesterday and modif

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread David G. Johnston
On Wed, May 15, 2019 at 1:01 PM Julie Nishimura wrote: > However, since I have modified template1 (and most likely, those databases > were copied from it in the past), it changed default_parameter for them as > well. > This seems unlikely to be the case - changing template1 should not be affecti

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Julie Nishimura
, May 15, 2019 12:47 PM To: Julie Nishimura; pgsql-general@lists.postgresql.org; pgsql-general Subject: Re: default_tablespace in 8.3 postgresql On 5/15/19 12:39 PM, Julie Nishimura wrote: > Hello, I have created new tablespace on a new drive yesterday and > modified some of existing databases

Re: default_tablespace in 8.3 postgresql

2019-05-15 Thread Adrian Klaver
On 5/15/19 12:39 PM, Julie Nishimura wrote: Hello, I have created new tablespace on a new drive yesterday and modified some of existing databases to use this tablespace as default, like this: ALTER DATABASE xxx SET default_tablespace = 'vol4'; So, this command did not physically move any exist