pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Removing raw data files
4+ messages / 3 participants
[nested] [flat]

* Removing raw data files
@ 2008-07-07 18:19  Carol Walter <walterc@indiana.edu>
  0 siblings, 2 replies; 4+ messages in thread

From: Carol Walter @ 2008-07-07 18:19 UTC (permalink / raw)
  To: pgsql-admin

Hello,

I asked this question a while ago and I didn't get an answer.    
Perhaps I asked the question in a manner that wasn't clear.  I  
upgraded from 8.1.3 to 8.2.3.  I left the 8.1.3 database intact in  
case I had to revert to it.  The 8.2.3 database is running just fine  
and I'd like to recover the space that the 8.1.3 raw data directories  
are consuming.  Can I just remove the raw data files with rm -rf on  
the data directory for the 8.1.3 version?  This may sound like a  
silly question but the database I worked with prior to postgres was  
MS SQL Server.  On that platform, you never know when something from  
the last version is imbedded in the new version.

Carol




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Removing raw data files
@ 2008-07-07 18:33  Tino Schwarze <postgresql@tisc.de>
  parent: Carol Walter <walterc@indiana.edu>
  1 sibling, 0 replies; 4+ messages in thread

From: Tino Schwarze @ 2008-07-07 18:33 UTC (permalink / raw)
  To: pgsql-admin

On Mon, Jul 07, 2008 at 02:19:19PM -0400, Carol Walter wrote:

> I asked this question a while ago and I didn't get an answer.    
> Perhaps I asked the question in a manner that wasn't clear.  I  
> upgraded from 8.1.3 to 8.2.3.  I left the 8.1.3 database intact in  
> case I had to revert to it.  The 8.2.3 database is running just fine  
> and I'd like to recover the space that the 8.1.3 raw data directories  
> are consuming.  Can I just remove the raw data files with rm -rf on  
> the data directory for the 8.1.3 version?  This may sound like a  
> silly question but the database I worked with prior to postgres was  
> MS SQL Server.  On that platform, you never know when something from  
> the last version is imbedded in the new version.

You can safely remove everything from the previous installation - I'm
supposing, your 8.2.x data directory is totally separate?

There is no hidden connection between both data directories. You dumped
everything into a file, so everything was in that file, then you
restored to 8.2.x, so everything is in 8.2.x now.

HTH,

Tino.

-- 
"What we nourish flourishes." - "Was wir nähren erblüht."

www.craniosacralzentrum.de
www.forteego.de



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Removing raw data files
@ 2008-07-07 18:42  Scott Marlowe <scott.marlowe@gmail.com>
  parent: Carol Walter <walterc@indiana.edu>
  1 sibling, 1 reply; 4+ messages in thread

From: Scott Marlowe @ 2008-07-07 18:42 UTC (permalink / raw)
  To: Carol Walter <walterc@indiana.edu>; +Cc: pgsql-admin

On Mon, Jul 7, 2008 at 12:19 PM, Carol Walter <walterc@indiana.edu> wrote:
> Hello,
>
> I asked this question a while ago and I didn't get an answer.   Perhaps I
> asked the question in a manner that wasn't clear.  I upgraded from 8.1.3 to
> 8.2.3.  I left the 8.1.3 database intact in case I had to revert to it.  The
> 8.2.3 database is running just fine and I'd like to recover the space that
> the 8.1.3 raw data directories are consuming.  Can I just remove the raw
> data files with rm -rf on the data directory for the 8.1.3 version?  This
> may sound like a silly question but the database I worked with prior to
> postgres was MS SQL Server.  On that platform, you never know when something
> from the last version is imbedded in the new version.

The cautious sysadmin in me says to set the directory to owner root
and perms 000 so it's not accesible.  Then if something goes horribly
wrong, you've still got the original directory.  If not, after a week
or two you can delete it knowing nothing is accessing it.



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Removing raw data files
@ 2008-07-07 19:10  Carol Walter <walterc@indiana.edu>
  parent: Scott Marlowe <scott.marlowe@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Carol Walter @ 2008-07-07 19:10 UTC (permalink / raw)
  To: Scott Marlowe <scott.marlowe@gmail.com>; +Cc: pgsql-admin

Uh-huh.  I like this answer.  Will do this and send result.  Might be  
interesting.

Carol

On Jul 7, 2008, at 2:42 PM, Scott Marlowe wrote:

> On Mon, Jul 7, 2008 at 12:19 PM, Carol Walter <walterc@indiana.edu>  
> wrote:
>> Hello,
>>
>> I asked this question a while ago and I didn't get an answer.    
>> Perhaps I
>> asked the question in a manner that wasn't clear.  I upgraded from  
>> 8.1.3 to
>> 8.2.3.  I left the 8.1.3 database intact in case I had to revert  
>> to it.  The
>> 8.2.3 database is running just fine and I'd like to recover the  
>> space that
>> the 8.1.3 raw data directories are consuming.  Can I just remove  
>> the raw
>> data files with rm -rf on the data directory for the 8.1.3  
>> version?  This
>> may sound like a silly question but the database I worked with  
>> prior to
>> postgres was MS SQL Server.  On that platform, you never know when  
>> something
>> from the last version is imbedded in the new version.
>
> The cautious sysadmin in me says to set the directory to owner root
> and perms 000 so it's not accesible.  Then if something goes horribly
> wrong, you've still got the original directory.  If not, after a week
> or two you can delete it knowing nothing is accessing it.




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2008-07-07 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-07-07 18:19 Removing raw data files Carol Walter <walterc@indiana.edu>
2008-07-07 18:33 ` Tino Schwarze <postgresql@tisc.de>
2008-07-07 18:42 ` Scott Marlowe <scott.marlowe@gmail.com>
2008-07-07 19:10   ` Carol Walter <walterc@indiana.edu>

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