[GENERAL] Corrupted DB? could not open file pg_clog/####

2006-07-29 Thread Francisco Reyes
Looking at archives seem to indicate missing pg_clog files is some form of row or page corruption. In an old thread from back in 2003 Tom Lane recommended (http://tinyurl.com/jushf): If you want to try to narrow down where the corruption is, you can experiment with commands like select ctid

Re: [GENERAL] create function syntax error

2006-07-29 Thread Andreas Kretschmer
Andreas Kretschmer <[EMAIL PROTECTED]> schrieb: > gustavo halperin <[EMAIL PROTECTED]> schrieb: > > > Hello > > > > I Always get "syntax error" for every function that I try to create, for > > example: > > mydb'>create or replace function f_sum () returns void as ' > > mydb'> select 2+2

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Christopher Browne
The world rejoiced as [EMAIL PROTECTED] (Tom Lane) wrote: > Flemming Frandsen <[EMAIL PROTECTED]> writes: >> I just looked at the pg_listener table: >> ... and noticed the complete lack of indexen, surely this must be a bug? > > No, that was intentional. It's been a long time but I think the > arg

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Christopher Browne
A long time ago, in a galaxy far, far away, [EMAIL PROTECTED] (Flemming Frandsen) wrote: > I just looked at the pg_listener table: > > zepong-> \d+ pg_listener > Table "pg_catalog.pg_listener" > Column| Type | Modifiers | Description > --+-+---+---

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Tom Lane
Flemming Frandsen <[EMAIL PROTECTED]> writes: > I just looked at the pg_listener table: > ... and noticed the complete lack of indexen, surely this must be a bug? No, that was intentional. It's been a long time but I think the argument was that the cost of updating the indexes would outweigh thei

Re: [GENERAL] Auto Installation

2006-07-29 Thread John Jawed
On Gentoo Linux, you can run: $ emerge --config dev-db/postgresql It will setup the default database and tell you which kernel settings you need to tweak (kernel.sem,kernel.shmmax, etc). On 7/29/06, Habib Seifzadeh <[EMAIL PROTECTED]> wrote: > > Is there any installer that installs PostgreSQL

Re: [GENERAL] create function syntax error

2006-07-29 Thread Shoaib Mir
You are missing the BEGIN and END section. Make your function like this:CREATE OR REPLACE FUNCTION f_sum() RETURNS void AS 'BEGIN   select 2+2; END;' LANGUAGE plpgsql;Thanks,-- Shoaib Mir EnterpriseDB (www.enterprisedb.com)On 7/30/06, gustavo halperin <[EMAIL PROTECTED]> wrote: HelloI Always get

Re: [GENERAL] create function syntax error

2006-07-29 Thread Andreas Kretschmer
gustavo halperin <[EMAIL PROTECTED]> schrieb: > Hello > > I Always get "syntax error" for every function that I try to create, for > example: > mydb'>create or replace function f_sum () returns void as ' > mydb'> select 2+2; > mydb'> ' LANGUAGE plpgsql; > ERROR: syntax error at

Re: [GENERAL] Auto Installation

2006-07-29 Thread Andreas Kretschmer
Habib Seifzadeh <[EMAIL PROTECTED]> schrieb: > > > Is there any installer that installs PostgreSQL > > > without any question from the user and assumes > > default > > > options? > > > > For what operating system? > > If there was a way for all of OSes, it would be great > :-) but I specially ne

[GENERAL] create function syntax error

2006-07-29 Thread gustavo halperin
Hello I Always get "syntax error" for every function that I try to create, for example: mydb'>create or replace function f_sum () returns void as ' mydb'> select 2+2; mydb'> ' LANGUAGE plpgsql; ERROR: syntax error at or near "select" at character 56 LINE 2: select 2+2; ^

Re: [GENERAL] Auto Installation

2006-07-29 Thread Habib Seifzadeh
> > Is there any installer that installs PostgreSQL > > without any question from the user and assumes > default > > options? > > For what operating system? If there was a way for all of OSes, it would be great :-) but I specially need it for windows in this case, Anyway, thank you for your reply

Re: [GENERAL] Auto Installation

2006-07-29 Thread Peter Eisentraut
Habib Seifzadeh wrote: > Is there any installer that installs PostgreSQL > without any question from the user and assumes default > options? For what operating system? -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)-

[GENERAL] Partitioning: CREATE OR REPLACE RULE freezes.

2006-07-29 Thread Gene
I have created a function that I use to help automate the creation of partition tables. Basically it: 1. Creates a new table inherited from the parent table (which is empty) 2. creates or replaces a sole rule on the parent table to insert into the new table: EXECUTE 'CREATE OR REPLACE RULE paren

[GENERAL] Auto Installation

2006-07-29 Thread Habib Seifzadeh
Hi dear friends, Is there any installer that installs PostgreSQL without any question from the user and assumes default options? By the way, I searched the archives but didn't find any thread discussing this question. if you know any thread, please show me the url. Cheers, Habib __

Re: [GENERAL] What's special about 1916-10-01 02:25:20? Odd jump in internal timestamptz representation

2006-07-29 Thread Tom Lane
"Alistair Bayley" <[EMAIL PROTECTED]> writes: >> Magnus, did you have a specific reason for choosing Europe/Dublin, >> or was it just alphabetically first? Europe/London looks at least >> marginally closer to what one would think "GMT" means: > Does it have to be a specific city? I'd rather it ju

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Flemming Frandsen
Michael Fuhr wrote: What's the output of "VACUUM VERBOSE pg_listener"? If you vacuum pg_listener do the listens run faster? Actually now that You mentioned vacuming, I tried doing a VACUUM and after it was done request time was down to around a tenth of what it was before. iow. requests th

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Flemming Frandsen
Michael Fuhr wrote: How long is "a very long time"? More than 2ms, typically 50-150ms. The other queries (that actually fetch data from tables and do real work) execute in 1-4ms. The funny thing is that if I run the select 6*7 after ping (which does a select 'somestring') then the select 6

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Michael Fuhr
On Sat, Jul 29, 2006 at 12:44:14PM +0200, Flemming Frandsen wrote: > Michael Fuhr wrote: > >Also, based on a 60ms-per-listen time I suspect you're not doing > >the listens in a transaction, so each listen is its own transaction > >that has to be committed, resulting in a disk hit. Try doing them >

Re: [GENERAL] What's special about 1916-10-01 02:25:20? Odd jump in internal timestamptz representation

2006-07-29 Thread Alistair Bayley
Oh, you didn't say you were on Windows I did, but it was buried in the first paragraph... Magnus, did you have a specific reason for choosing Europe/Dublin, or was it just alphabetically first? Europe/London looks at least marginally closer to what one would think "GMT" means: Does it have

Re: [GENERAL] Performance of the listen command

2006-07-29 Thread Flemming Frandsen
Michael Fuhr wrote: Also, based on a 60ms-per-listen time I suspect you're not doing the listens in a transaction, so each listen is its own transaction that has to be committed, resulting in a disk hit. Try doing them all in one transaction. I think I am doing the listens in a transaction, a