Re: [ADMIN] Recovery/Rollback question

2007-02-26 Thread Jason Minion
that copy of the database in question to your primary server. Jason Minion [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, February 26, 2007 7:57 AM To: pgsql-admin@postgresql.org Subject: [ADMIN

Re: [ADMIN] Incremental Backup of a particular database

2007-01-18 Thread Jason Minion
some other db's with regards to recovery time in a DR scenario. I am very eager to see where we go in the future. Jason Minion [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yogvinder Singh Sent: Thursday, January 18, 2007

Re: [ADMIN] [PERFORM] Query tuning

2006-08-23 Thread Jason Minion
spersed amongst millions of rows) then you may be back to the seq scan. Jason Minion [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Subbiah, Stalin Sent: Wednesday, August 23, 2006 11:44 PM To: Dave Dutcher Cc: pgsql-performance@postgresql.o

Re: [ADMIN] Autovacuum probably not working?

2006-04-28 Thread Jason Minion
full and retrieving system space, you'll want to read: http://www.postgresql.org/docs/8.0/interactive/maintenance.html#VACUUM-FOR-SPACE-RECOVERY Jason Minion [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Szabolcs BALLA Sent: F

Re: [ADMIN] dbsize & pg_dump

2006-04-25 Thread Jason Minion
Usually a dump is significantly smaller than a live database due to space taken up by indexes and discarded tuples from MVCC. If it's significantly smaller you may also want to take a look at your vacuuming procedure. But I'm not sure database_size() is. Jason Minion [EMAIL

Re: [ADMIN] Problem with /usr/local/pgsql/bin/psql

2006-04-24 Thread Jason Minion
You're using single quotes inside single quotes, you'll need to either escape them or switch to double-quotes for your outer string delimiter (preferred). ie: /usr/local/pgsql/bin/psql -d temp -c "insert into temp.ip_mapping_tb(ip, location) values('192.100.9.51','

Re: Postgresql server does not start!:( -Re: [ADMIN] PostgreSQl

2006-03-30 Thread Jason Minion
If by "broken connection" you are referring to the "invalid startup packet" lines - that has been known to be caused by pretty much anything other than a postgresql client connecting to the pg server port, ie portscanner, someone telnetting, net bot, etc. Jason Minion -

Re: [ADMIN] Client Connection - PGAdmin

2006-03-29 Thread Jason Minion
also want to make sure to read and understand the relevant sections in the manual: http://www.postgresql.org/docs/8.1/interactive/client-authentication.htm l Good luck! Jason Minion From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of German Raul Hoy

Re: [ADMIN] sql copy does not work

2006-03-02 Thread Jason Minion
Title: sql copy does not work You probably need to add escaped slashes into your perl string to escape the quotes on the command line. Maybe try:   system ("su - postgres -c \"echo \"\\\"\"copy test from \'/data/log/20060115.out\'\;\"\\\"\"

Re: [ADMIN] problem in sequence

2006-03-01 Thread Jason Minion
/interactive/sql-createsequence.html Jason Minion From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Suvarna Sent: Monday, February 27, 2006 11:51 PM To: pgsql-admin@postgresql.org Subject: [ADMIN] problem in sequence In postgresql 7.3.2 if the server

Re: [ADMIN] Problem in date function

2006-02-28 Thread Jason Minion
Assuming your New.dt is a date type and NEW.months is an integer, you probably want to change your expression to something like: NEW.dt + (NEW.months * INTERVAL '1 month') Also a good read: http://www.postgresql.org/docs/8.1/interactive/functions-datetime.html Jason Minion ---

Re: [ADMIN] Transferring DATA directory

2006-01-18 Thread Jason Minion
Does the local postgresql user account on machine B have the correct permissions for the files you copied over? Also make sure to try starting postgresql from the command line using pg_ctl, and check your service properties to get an idea of the command being used there to attempt to start postgres

Re: [ADMIN] Help with simple function

2005-12-28 Thread Jason Minion
Instead of: interval "numDays day" use: (numDays * (interval '1 day')) Also, note that in your "select to_char" you have misspelled (sp?) interval as "inteval". And last but not least, you can do simple day addition and subtraction with dates using integers. For example: > select '2

Re: [ADMIN] freezing a particular field in a table

2005-11-22 Thread Jason Minion
Perhaps a BEFORE UPDATE trigger, setting NEW.do_not_change_me = OLD.do_not_change_me? Jason Minion IT Developer Sigler Printing & Publishing 413 Northwestern Ave Ames, IA 50010 515-232-6997 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Be

Re: [ADMIN] How to start postresql db server as a administrator on windows platform?

2005-11-03 Thread Jason Minion
reSQL at a command prompt check: > pg_ctl.exe --help You'll want to use the runas command to run the pg_ctl.exe under another (unprivileged!) user account: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/runas.mspx Jason Minion IT Developer Sigler Printin

Re: [ADMIN] connect to postgres from shell scripts

2005-08-22 Thread Jason Minion
Take a look at the .pgpass file, some info at: http://www.postgresql.org/docs/8.0/interactive/libpq-pgpass.html Doing that, your password is still as secure as your .pgpass file, which hopefully is more secure than your script. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [ADMIN] SQL Help - Obtaining ID of record INSERTED

2005-08-16 Thread Jason Minion
Check out http://www.postgresql.org/docs/8.0/interactive/functions-sequence.html You'll want to use something like "SELECT currval('')". The thing is, your orderid field in orderstemp has a sequence which it uses to grab the next value. The currval function called with the name of the sequence as

Re: [ADMIN] outer joins

2005-08-05 Thread Jason Minion
It looks like you're using two different fields in the where clause which is kind of bad form. Try (pm.global_id is null or pm.global_id = 2915). The thing is, if you have matching records in project_members for every record in project with the IDs, then pm.project_id will never be null. Thus, the

Re: [ADMIN] outer joins

2005-08-05 Thread Jason Minion
If he's using a restriction upon an outer joined table in the where clause it might be returning results like it was an inner join, ie: select * from A left outer join B on A.id=B.id where B.accessed>'2005-10-31'; Instead you'd want to check for the outer joined field having a null value in the w

Re: [ADMIN] symlinking pg_xlog

2005-06-24 Thread Jason Minion
Go for it, it's suggested: http://www.postgresql.org/docs/8.0/interactive/wal-internals.html Jason Minion IT Developer Sigler Printing & Publishing 413 Northwestern Ave Ames, IA 50010 515-232-6997 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [ADMIN] Question of Table Design and Foreign Keys

2005-05-31 Thread Jason Minion
I think the way you want to look at it is: if a record exists in sample_attributesjoin, then it needs to reference both samples and attributes. You don't need to worry about samples or attributes being "off" because they don't have "enough" references, instead you want to ensure that if a record ex

Re: [ADMIN] Can you generate SQL by using SQL in Postgres?

2005-05-19 Thread Jason Minion
C, Perl, etc you should directly connect using libpq, DBI, etc and pass the credentials that way. Good luck! Jason Minion IT Developer Sigler Printing & Publishing 413 Northwestern Ave Ames, IA 50010 515-232-6997 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [ma

Re: [ADMIN] Post Gres triggers for trail

2005-05-02 Thread Jason Minion
returndate IS NULL THEN   NEW.returndate := \'now\';  END IF; END IF; RETURN NEW;END;'  LANGUAGE 'plpgsql' VOLATILE;   In that case returndate is a timestamp. Hope it helps!   Jason Minion -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

Re: [ADMIN] Backup

2005-03-23 Thread Jason Minion
If you are running version 8, you may want to look into the WAL archiving: http://www.postgresql.org/docs/8.0/interactive/backup-online.html That would form the basis of your incremental backup strategy. I haven't had the joy of using them myself however, and do not know of any tools to make it

Re: [ADMIN] Re-initialize pg_hba.conf file?

2005-03-16 Thread Jason Minion
pg_ctl reload [ -s ] [ -D datadir ] You might want to check man page on pg_ctl, it's very useful! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of David Wagoner Sent: Wednesday, March 16, 2005 8:28 AM To: PgSQL Admin Subject: [ADMIN] Re-initialize pg_hba.conf