C: FULL; Try to move Postgres to another harddrive

Forum with tips, support, etc, on using the PostgreSQL database with Poker Tracker. Please post any PostgreSQL questions here.

Re: C: FULL; Try to move Postgres to another harddrive

Postby oli2222 » Fri Aug 01, 2008 2:11 am

Little Problem. There is no template1:

http://img262.imageshack.us/img262/1717 ... s09dt6.png
oli2222
 
Posts: 22
Joined: Sun Mar 16, 2008 12:46 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby ptrack pat » Fri Aug 01, 2008 9:34 am

Under the View menu select Show System Objects
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby oli2222 » Fri Aug 01, 2008 10:12 am

oli2222
 
Posts: 22
Joined: Sun Mar 16, 2008 12:46 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby ptrack pat » Fri Aug 01, 2008 10:30 am

Look under the tools menu. I'm on vacation now, I don't have my computer with me. If you can't find it there, open the Help option and try searching for System Objects or something like that.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby oli2222 » Fri Aug 01, 2008 10:52 am

ok found it.

I also found the mentioned tables. Do I have to delete these entries?

http://img47.imageshack.us/img47/5152/postgres11gd9.png
oli2222
 
Posts: 22
Joined: Sun Mar 16, 2008 12:46 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby ptrack pat » Fri Aug 01, 2008 11:22 am

You need to delete all 4 of those tables.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby oli2222 » Fri Aug 01, 2008 12:40 pm

Ups.. I had to drop / cascade and then the hole schema public is gone.
http://img208.imageshack.us/img208/631/ ... s13yw4.png

If I try to convert a database now I get a different error message:
http://img243.imageshack.us/img243/4130 ... s12gr6.png

Sorry if I am a bit of trouble.
oli2222
 
Posts: 22
Joined: Sun Mar 16, 2008 12:46 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby ptrack pat » Fri Aug 01, 2008 1:45 pm

The only way it would have dropped the entire schema is if you dropped it instead of just the tables.

Click on the Tools > Query Tool option.

In the following window copy/paste the following...

CREATE SCHEMA public
AUTHORIZATION postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO public;
COMMENT ON SCHEMA public IS 'Standard public schema';

Now hit F5 to run it and hopefully it will recreate that schema.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby oli2222 » Fri Aug 01, 2008 2:35 pm

Ok, I think this worked and now i can convert databases to PostgresSQL. Thank you very much Pat!

One last question. The two original backup files I made from the old postgresSQL installation were like 200 mb together but my postgre folder is like 6,3 gb already with 10k hands more at max. How is this possible and can I do something against that?
oli2222
 
Posts: 22
Joined: Sun Mar 16, 2008 12:46 pm

Re: C: FULL; Try to move Postgres to another harddrive

Postby ptrack pat » Fri Aug 01, 2008 4:07 pm

The backup files are compressed when you do the backups so they are always smaller than the actual size of your data folder. Also, all the indexes, etc. that take up a lot of space are not part of the backup, just the data is along with the schema needed to rebuild the tables and indexes when you restore.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Previous

Return to PostgreSQL Forum

Who is online

Users browsing this forum: No registered users and 12 guests

cron
highfalutin