473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Great change (size of data dir) upgrading postgresql

Hello all!

I've upgraded postgresql from 7.2 to 7.4, and my data dir has
changed a lot:

S.ficheros Tamaño Usado Disp Uso% Montado en
/dev/hda1 1.9G 1.8G 64M 97% /usr/local/pgsql/data.old
/dev/hdb2 4.5G 357M 3.9G 9% /usr/local/pgsql/data

Is this normal? I've made some queries to the system and all the
data seems be there. Of course, the database goes faster than before
upgrading it, but I want know if I can delete this data.old directory.

Thanks in advance,
Carlos.
[ http://www.biologia.org/ :: portal especializado en Biología ]
_______Carlos Costa Portela___________________________________________ ______
| e-mail: cc****@servidores.net | home page: http://casa.ccp.servidores.net |
|_____Tódalas persoas maiores foron nenos antes, pero poucas se lembran______|
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #1
2 1607

On Sun, 18 Jan 2004, Carlos Costa Portela wrote:
Hello all!

I've upgraded postgresql from 7.2 to 7.4, and my data dir has
changed a lot:

S.ficheros Tamaño Usado Disp Uso% Montado en
/dev/hda1 1.9G 1.8G 64M 97% /usr/local/pgsql/data.old
/dev/hdb2 4.5G 357M 3.9G 9% /usr/local/pgsql/data

Is this normal? I've made some queries to the system and all the
data seems be there. Of course, the database goes faster than before
upgrading it, but I want know if I can delete this data.old directory.


Well, to be safe...back it up.

However, I would suggest that you haven't 'vacuum'-ed you 7.3 database for some
time. To give some level of comfort before destroying the original data
directory you could fire up the 7.2 server and run vacuum full against it's
databases. Then check the disk usage and hopefully you would see similar disk
usage to the new installation. You may also need to reindex the 7.2 databases
to get the old installation to similar disk usage as the new one.
---
Nigel Andrews
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 22 '05 #2
Quoth cc****@servidores.net (Carlos Costa Portela):
Hello all!

I've upgraded postgresql from 7.2 to 7.4, and my data dir has
changed a lot:

S.ficheros Tamaño Usado Disp Uso% Montado en
/dev/hda1 1.9G 1.8G 64M 97% /usr/local/pgsql/data.old
/dev/hdb2 4.5G 357M 3.9G 9% /usr/local/pgsql/data

Is this normal? I've made some queries to the system and all the
data seems be there. Of course, the database goes faster than before
upgrading it, but I want know if I can delete this data.old directory.


Apparently your (Linux?) distribution did something automatic; you
might want to indicate what colour/flavour of Unix you might have been
using, as that might give some better indication of what should be
done...

The reduction in size seems consistent with the old database having
had a lot of updates/deletes, where tuples didn't get vacuumed out.
The result being that some tables and indices might bloat in size.

When the data was freshly loaded into the new database, it apparently
shrunk in size.

One suggestion: You may want to run VACUUM on the database once in a
while; that should keep the size down. Indeed, in 7.4, there's an
automatic vacuum daemon that should do a good job of preventing such
growth...
--
let name="cbbrowne" and tld="cbbrowne.com" in String.concat "@" [name;tld];;
http://www.ntlug.org/~cbbrowne/rdbms.html
They are called computers simply because computation is the only
significant job that has so far been given to them. -- Louis Ridenour
Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: cjl | last post by:
Hey all: I want to convert strings (ex. '3', '32') to strings with left padded zeroes (ex. '003', '032'), so I tried this: string1 = '32' string2 = "%03s" % (string1) print string2 >32
2
by: bissatch | last post by:
If I want to determine what data types a table has, how would I do this using PHP? I tried looking into SHOW TABLES but would I be correct in saying that just displays a list of tables? I want...
12
by: Xah Lee | last post by:
would anyone like to translate the following perl script to Python or Scheme (scsh)? the file takes a inpath, and report all html files in it above certain size. (counting inline images) also...
2
by: Piyush Agarwal | last post by:
Hi, I had the version 7.1 of postgresql running fine on Redhat 7.1. Before upgrading my OS to RedHat 9, I forgot saying pgdump_all - is there a way now to read the files stored with version 7.1...
49
by: Sam | last post by:
Hi all, Is there a function in the standard library that can get the size of a file? Thank you very much. Sam.
3
by: Linh Luong | last post by:
Hi All, 1. I have been reading and the max size of a tuple is 8K. I have also read that I can it to a larger size in some config file. Where is this file? is it called pg_config.h and is the...
19
by: Mike Cox | last post by:
Has anyone created something like that for Postgresql? It would be really handy to encrypt credit card numbers and other information so it stays secure. If no one has created anything such as...
2
by: Bilicki Vilmos | last post by:
Hi all, I have upgraded my cygwin installation and it has replaced my old 7.3 postgresql. My questions are the following: How can I use the old files with the newer version? If this is not...
19
by: felixnielsen | last post by:
Some might remember that i, not so long ago, started a treath or two about a weird 3d labyrinth. I now have a working code, that i want to share, hear comments, advice, ect., but first let me...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.