Re: [GENERAL] Installing PostgreSQL on Windows 7 Beta Build 7000 64bit - first results

2009-01-26 Thread ITAGAKI Takahiro
Harald Armin Massa wrote: > 4.) it seems to be no longer "cool" to have your data below Program > Files / Program Files (x86) > The default as of know is \ProgramData\ I think all of those directories are only for executable files and not good to store any data. Is it safe to create database cl

Re: [GENERAL] Serial Jumping

2009-01-26 Thread A. Kretschmer
In response to db.subscripti...@shepherdhill.biz : > Hi, > > I have a table with BIG SERIAL field as Primary KEY. During high load, > entries in the BIG SERIAL field are jumped. One could see a row with > 1367 and expecting the next INSERT to be 1368, one would end up > getting 1369. > > Please i

Re: [GENERAL] Serial Jumping

2009-01-26 Thread Craig Ringer
Bill Moran wrote: > db.subscripti...@shepherdhill.biz wrote: >> Hi, >> >> I have a table with BIG SERIAL field as Primary KEY. During high load, >> entries in the BIG SERIAL field are jumped. One could see a row with >> 1367 and expecting the next INSERT to be 1368, one would end up >> getting 1369

Re: [GENERAL] Serial Jumping

2009-01-26 Thread Bill Moran
db.subscripti...@shepherdhill.biz wrote: > > Hi, > > I have a table with BIG SERIAL field as Primary KEY. During high load, > entries in the BIG SERIAL field are jumped. One could see a row with > 1367 and expecting the next INSERT to be 1368, one would end up > getting 1369. > > Please is this n

[GENERAL] Serial Jumping

2009-01-26 Thread db . subscriptions
Hi, I have a table with BIG SERIAL field as Primary KEY. During high load, entries in the BIG SERIAL field are jumped. One could see a row with 1367 and expecting the next INSERT to be 1368, one would end up getting 1369. Please is this normal? Regards, Chris -- Sent via pgsql-general mailing

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Tom Lane
David Fetter writes: > I think you may be thinking of the situation where foreign keys were > implemented as visible triggers, and the contrib/adddepend script, > which was removed (IIRC) in 8.2. We replaced it with some hacks in CREATE TRIGGER, so theoretically that conversion should still work.

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread David Fetter
On Mon, Jan 26, 2009 at 06:45:55PM -0800, Steve Atkins wrote: > On Jan 26, 2009, at 6:33 PM, Tom Lane wrote: >> "Dann Corbit" writes: >>> My notion is to do a character mode database dump as SQL >>> statements and then load into the new version by execution of >>> psql against the sql STATEMENTS.

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Joshua D. Drake
On Tue, 2009-01-27 at 04:28 +0100, marcin mank wrote: > On Mon, Jan 26, 2009 at 10:37 PM, Dann Corbit wrote: > > My notion is to do a character mode database dump as SQL statements and > > then load into the new version by execution of psql against the sql > > STATEMENTS. > > > > What are the "got

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread marcin mank
On Mon, Jan 26, 2009 at 10:37 PM, Dann Corbit wrote: > My notion is to do a character mode database dump as SQL statements and > then load into the new version by execution of psql against the sql > STATEMENTS. > > What are the "gotchas" we can expect with this approach? > > When I say 'ancient' I

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Craig Ringer
Tom Lane wrote: "Dann Corbit" writes: My notion is to do a character mode database dump as SQL statements and then load into the new version by execution of psql against the sql STATEMENTS. What are the "gotchas" we can expect with this approach? When I say 'ancient' I mean v7.1.3 and the targe

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Steve Atkins
On Jan 26, 2009, at 6:33 PM, Tom Lane wrote: "Dann Corbit" writes: My notion is to do a character mode database dump as SQL statements and then load into the new version by execution of psql against the sql STATEMENTS. What are the "gotchas" we can expect with this approach? When I say 'anc

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Tom Lane
"Dann Corbit" writes: > My notion is to do a character mode database dump as SQL statements and > then load into the new version by execution of psql against the sql > STATEMENTS. > What are the "gotchas" we can expect with this approach? > When I say 'ancient' I mean v7.1.3 and the target is v8.3

Re: [GENERAL] The difference between RESTRICT and NO ACTION

2009-01-26 Thread Tom Lane
Bill Todd writes: > In discussing foreign key constraints the manual makes the following > statement about the difference between RESTRICT and NO ACTION. > "(The essential difference between these two choices is that |NO ACTION| > allows the check to be deferred until later in the transaction,

Re: [GENERAL] The difference between RESTRICT and NO ACTION

2009-01-26 Thread Bill Todd
Bill Todd wrote: In discussing foreign key constraints the manual makes the following statement about the difference between RESTRICT and NO ACTION. "(The essential difference between these two choices is that |NO ACTION| allows the check to be deferred until later in the transaction, whereas

[GENERAL] The difference between RESTRICT and NO ACTION

2009-01-26 Thread Bill Todd
In discussing foreign key constraints the manual makes the following statement about the difference between RESTRICT and NO ACTION. "(The essential difference between these two choices is that |NO ACTION| allows the check to be deferred until later in the transaction, whereas |RESTRICT| does n

Re: [GENERAL] Please, could I subscribe to this list? Thanks.

2009-01-26 Thread Scott Marlowe
On Mon, Jan 26, 2009 at 2:20 PM, Bernard Grosperrin wrote: To make changes to your subscription, go here: > http://www.postgresql.org/mailpref/pgsql-general -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mai

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Steve Crawford
Dann Corbit wrote: My notion is to do a character mode database dump as SQL statements and then load into the new version by execution of psql against the sql STATEMENTS. What are the "gotchas" we can expect with this approach? When I say 'ancient' I mean v7.1.3 and the target is v8.3.5. Ass

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Raymond O'Donnell
On 26/01/2009 21:42, Raymond O'Donnell wrote: > Off the top of my head, I have a memory that constraints were Sorry, I meant to say "...foreign key constraints..." R. -- Raymond O'Donnell, Director of Music, Galway Cathedral, Irela

Re: [GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Raymond O'Donnell
On 26/01/2009 21:37, Dann Corbit wrote: > My notion is to do a character mode database dump as SQL statements and > then load into the new version by execution of psql against the sql > STATEMENTS. > > What are the "gotchas" we can expect with this approach? > > When I say 'ancient' I mean v7.1.3

[GENERAL] What is the best plan to upgrade PostgreSQL from an ancient version?

2009-01-26 Thread Dann Corbit
My notion is to do a character mode database dump as SQL statements and then load into the new version by execution of psql against the sql STATEMENTS. What are the "gotchas" we can expect with this approach? When I say 'ancient' I mean v7.1.3 and the target is v8.3.5. -- Sent via pgsql-genera

[GENERAL] Please, could I subscribe to this list? Thanks.

2009-01-26 Thread Bernard Grosperrin
bgrosper...@laposte.net Bernard Grosperrin BGSoftFactory Bureau/Domicile 09 53 41 58 18 Mobile 06 75 13 97 17 -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Seeking volunteers for SCALE (one more time)

2009-01-26 Thread Richard Broersma
This call is going out to PostgreSQL enthusiasts. We are seeking volunteers to assist the PostgreSQL booth for this years Southern California Linux Expo: http://scale7x.socallinuxexpo.org The Exhibit hall will be open on Saturday the February 21st and Sunday the 22nd between the hours of 10am and

Re: [GENERAL] Unable to open DB: 2 Errors (unexpected zero page + could not open relation with OID)

2009-01-26 Thread dave sale
Thanks for your help; template1=# select * from pg_class where oid=3606; relname | relnamespace | reltype | relowner | relam | relfilenode | reltablespace | relpages | reltuples | reltoastrelid | reltoastidxid | relhasindex | relisshared | relkind | relnatts | relchecks | r

Re: [GENERAL] Unable to open DB: 2 Errors (unexpected zero page + could not open relation with OID)

2009-01-26 Thread Tom Lane
dave sale writes: > psql: FATAL: could not open relation with OID 3606 > I'm pretty sure the file is there for 3606, but it's another system index > from what I can tell: > postgres=> select oid,* from pg_class where oid=3606; > oid | relname | relnamespace | reltype | rel

[GENERAL] Unable to open DB: 2 Errors (unexpected zero page + could not open relation with OID)

2009-01-26 Thread dave sale
Postgres 8.3.3 on 2.6.21 Some sort of corruption happened overnight and borked things on a server. Normally I'd just restore and go, but the DB was moved about 6 weeks ago and it looks like the backup task was not, shame on me. I really just need 2 very small tables out of this and then I can

Re: [GENERAL] dblink syntax question for remotely invoking void-returning procedures

2009-01-26 Thread Asko Oja
Take a stab at plproxy if you want to remotly call functions. Should be much better suited than dblink for that. Regards Asko On Mon, Jan 26, 2009 at 4:07 PM, Merlin Moncure wrote: > On 1/24/09, Ian Sollars wrote: > > Hello everyone, > > > > I've got some questions about dblink that I couldn't

Re: [GENERAL] where (x,y,z) in ((x1,y1, z1), (x1,y1, z1), (x1,y1, z1), (x2,y2, z2)) (not) optimized

2009-01-26 Thread Tom Lane
=?UTF-8?Q?Grzegorz_Ja=C5=9Bkiewicz?= writes: > why : > select * from foo where X in (1,1,1,1,1,1,1,1) --- same values in search. > never gets optimized by planner, etc ? We actually did that, before 8.0 or thereabouts. It was removed because it cost a lot of planner cycles for *every* query, and

Re: [GENERAL] How to do an UPDATE for all the fields that do NOT break a constraint?

2009-01-26 Thread Matthias Karlsson
On Mon, Jan 26, 2009 at 2:53 PM, Phoenix Kiula wrote: > On Mon, Jan 26, 2009 at 9:45 PM, Matthias Karlsson wrote: >> On Mon, Jan 26, 2009 at 2:09 PM, Phoenix Kiula >> wrote: >>> I wonder if this is an SQL limitation or something I'm missing in the >>> PG manual, but I need to run an update on m

Re: [GENERAL] where (x,y,z) in ((x1,y1, z1), (x1,y1, z1), (x1,y1, z1), (x2,y2, z2)) (not) optimized

2009-01-26 Thread Grzegorz Jaśkiewicz
On Mon, Jan 26, 2009 at 1:58 PM, Filip Rembiałkowski wrote: > 2009/1/26 Grzegorz Jaśkiewicz >> >> Hey folks, >> >> I have question really for all mighty developers, but don't want to >> spam -hackers with it. >> >> why : >> select * from foo where X in (1,1,1,1,1,1,1,1) --- same values in search.

Re: [GENERAL] dblink syntax question for remotely invoking void-returning procedures

2009-01-26 Thread Merlin Moncure
On 1/24/09, Ian Sollars wrote: > Hello everyone, > > I've got some questions about dblink that I couldn't find answers to in the > documentation. Any help would be much appreciated. > > I need to invoke a function on a remote server that returns either void or > text, and I'm trying to find a nice

Re: [GENERAL] where (x,y,z) in ((x1,y1, z1), (x1,y1, z1), (x1,y1, z1), (x2,y2, z2)) (not) optimized

2009-01-26 Thread Filip Rembiałkowski
2009/1/26 Grzegorz Jaśkiewicz > Hey folks, > > I have question really for all mighty developers, but don't want to > spam -hackers with it. > > why : > select * from foo where X in (1,1,1,1,1,1,1,1) --- same values in search. > or select * from foo where (x,y) in > ((1,2),(1,2),(1,2),(1,2),(1,2),

Re: [GENERAL] How to do an UPDATE for all the fields that do NOT break a constraint?

2009-01-26 Thread Phoenix Kiula
On Mon, Jan 26, 2009 at 9:45 PM, Matthias Karlsson wrote: > On Mon, Jan 26, 2009 at 2:09 PM, Phoenix Kiula > wrote: >> I wonder if this is an SQL limitation or something I'm missing in the >> PG manual, but I need to run an update on my database (to replace the >> value of a column to match a ne

Re: [GENERAL] How to do an UPDATE for all the fields that do NOT break a constraint?

2009-01-26 Thread Matthias Karlsson
On Mon, Jan 26, 2009 at 2:09 PM, Phoenix Kiula wrote: > I wonder if this is an SQL limitation or something I'm missing in the > PG manual, but I need to run an update on my database (to replace the > value of a column to match a new design structure). > > Due to the new business logic, the replac

[GENERAL] How to do an UPDATE for all the fields that do NOT break a constraint?

2009-01-26 Thread Phoenix Kiula
I wonder if this is an SQL limitation or something I'm missing in the PG manual, but I need to run an update on my database (to replace the value of a column to match a new design structure). Due to the new business logic, the replaced value of a field may end up being already present in the data

[GENERAL] where (x,y,z) in ((x1,y1, z1), (x1,y1, z1), (x1,y1, z1), (x2,y2, z2)) (not) optimized

2009-01-26 Thread Grzegorz Jaśkiewicz
Hey folks, I have question really for all mighty developers, but don't want to spam -hackers with it. why : select * from foo where X in (1,1,1,1,1,1,1,1) --- same values in search. or select * from foo where (x,y) in ((1,2),(1,2),(1,2),(1,2),(1,2),(1,2),(1,2)); never gets optimized by planner,