Unix Technical Forum

Removing raw data files

This is a discussion on Removing raw data files within the pgsql Admins forums, part of the PostgreSQL category; --> Hello, I asked this question a while ago and I didn't get an answer. Perhaps I asked the question ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2008, 02:12 AM
Carol Walter
 
Posts: n/a
Default Removing raw data files

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


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-08-2008, 02:12 AM
Tino Schwarze
 
Posts: n/a
Default Re: Removing raw data files

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

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-08-2008, 02:12 AM
Scott Marlowe
 
Posts: n/a
Default Re: Removing raw data files

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.

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 02:12 AM
Carol Walter
 
Posts: n/a
Default Re: Removing raw data files

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.



--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com