Re: [GENERAL] log_statement and syslog severity

2010-03-06 Thread Bruce Momjian
G Dutton wrote: > Hello all, > > I've seen some rather tangential postings about means of filtering log > messages, but none quite match up to (what I believe to be) my > requirement, so here goes: > > As a means of auditing our database server, I would like to use the > PostgreSQL 'log_statement

Re: [GENERAL] XML performance tuning

2010-03-06 Thread Bruce Momjian
Chris Roffler wrote: > Are there any guidelines for XML performance tuning ? Uh, no, I have never seen any. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com PG East: http://www.enterprisedb.com/community/nav-pg-east-2010.do --

Re: [GENERAL] non intuitive behaviour of DROP TABLE IF EXISTS

2010-03-06 Thread Bruce Momjian
Manlio Perillo wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi. > > I think the following behaviour is not intuitive: > > manlio=> DROP TABLE IF EXISTS foo.bar; > ERROR: schema "foo" does not exist > > The statement should not fail if the schema does not exist Hmm. Well, it s

Re: [GENERAL] What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?

2010-03-06 Thread Tom Lane
Scott Ribe writes: >> OK, what probably happened was that the data was loaded okay and then >> you got these errors from the commands that attempted to create unique >> indexes. > Isn't it also possible that she was not restoring into an empty database? Maybe, but then she should have seen compl

Re: [GENERAL] What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?

2010-03-06 Thread Scott Ribe
> OK, what probably happened was that the data was loaded okay and then > you got these errors from the commands that attempted to create unique > indexes. Isn't it also possible that she was not restoring into an empty database? -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.co

Re: [GENERAL] What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?

2010-03-06 Thread Tom Lane
"Wang, Mary Y" writes: > Actually I got that type of error during the restore process( I used pg_dump > --insert option when doing the dump). But the interesting thing is that even > though it flagged as an error, those rows of inserts still made to the table > with the correct bug_id. So I'm

Re: [GENERAL] What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?

2010-03-06 Thread Dimitri Fontaine
"Wang, Mary Y" writes: > Because the current value is 6818, during the restore process, it > complained about "duplicate key value violates unique constraint > "bug_pkey, because the value of bug_pk_seq for a insert has been > already been used. So what is the best way to resolve this? Should I

Re: [GENERAL] What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?

2010-03-06 Thread Wang, Mary Y
Actually I got that type of error during the restore process( I used pg_dump --insert option when doing the dump). But the interesting thing is that even though it flagged as an error, those rows of inserts still made to the table with the correct bug_id. So I'm not too worried about it right n

Re: [GENERAL] What's the best way to deal with the pk_seq sequence value after a restore (bulk loading)?

2010-03-06 Thread Tom Lane
"Wang, Mary Y" writes: > After a restore, I got a lot errors like this one : "duplicate key value > violates unique constraint "bug_pkey"". After looking at the dump file, it > has > ... > Because the current value is 6818, during the restore process, it > complained about "duplicate key value

Re: [GENERAL] 9.0 VACUUM FULL vs. ALTER TABLE?

2010-03-06 Thread Tom Lane
Noah Misch writes: > I understand that 9.0 will have a new implementation of VACUUM FULL that > follows > a rewrite strategy like CLUSTER or ALTER TABLE. What differences will remain > between VACUUM FULL and a no-op ALTER TABLE that rewrites? Will there remain > situations in which to prefer t

[GENERAL] Filesysstems

2010-03-06 Thread Adrian von Bidder
Heyho! On Friday 05 March 2010 20.18:46 Greg Smith wrote: > The short version is that ext3 combined with regular hard drives has > never been safe for database use by default, [...] > The change in ext4 [...] eliminating the source for that cheat. Tangentially related: how is the behaviour [1]

[GENERAL] Libpq: copy file to bytea column

2010-03-06 Thread seiliki
Hi! The data types of tableout.c1 and tablein.c1 are both bytea. I first export tableout.c1 to a file: db1=# COPY (SELECT c1 FROM tableout LIMIT 1) TO '/tmp/t'; Then I try to import the file to another table. This works without flaw: db1=# COPY tablein FROM '/tmp/t'; However, I get the follo

[GENERAL] Re: [NOVICE] How to find details of arguments in all functions in postgre - One solution

2010-03-06 Thread Michael Wood
On 6 March 2010 12:11, wrote: > > Hello All, > > I was trying to find some way, to list out all argument details in all > functions in postgre(input parameter names, types and mode - in/out). [...] > > Please suggest, if some better way is available of achieving this. > Also, i want to know the w

[GENERAL] How to find details of arguments in all functions in postgre - One solution

2010-03-06 Thread venkatrao . b
Hello All, I was trying to find some way, to list out all argument details in all functions in postgre(input parameter names, types and mode - in/out). I found one solution - -- select r.routine