Re: [GENERAL] SQL error: could not connect to database

2010-06-23 Thread Kenichiro Tanaka
Hi. At first,I think you lack some settings. (eg. pg_hba.conf,listen_addresses or restarting) But you say "I can log in to postgresql without password prompt using the psql tool". I can image some case,but we have to get some more information. So I'd like you to try the following program.This

Re: [GENERAL] SQL error

2008-04-19 Thread Craig Ringer
x asasaxax wrote: HI everyone, I´m trying to capture all the possible errors that a statement can have. And, if there´s any error i will do a rollback; What i´m trying to do its: BEGIN insert into temp values(1, 2, 3); IF ANY_ERROR_OCCURED THEN ROLLBACK; Sorry, I didn't see the ROLLB

Re: [GENERAL] SQL error

2008-04-19 Thread Craig Ringer
x asasaxax wrote: HI everyone, I´m trying to capture all the possible errors that a statement can have. And, if there´s any error i will do a rollback; What i´m trying to do its: BEGIN insert into temp values(1, 2, 3); IF ANY_ERROR_OCCURED THEN ROLLBACK; RETURN FALSE; END IF; EN

Re: [GENERAL] SQL error

2008-04-19 Thread Martijn van Oosterhout
On Sat, Apr 19, 2008 at 11:47:19AM -0300, x asasaxax wrote: > I´m trying to capture all the possible errors that a statement can have. > And, if there´s any error i will do a rollback; What i´m trying to do its: What are you trying to do? Any error automatically rolls back the transaction, so: >

Re: [GENERAL] SQL error - please help.

2005-08-22 Thread Stephan Szabo
On Tue, 23 Aug 2005, Bernard wrote: > Dear Postgresql specialists > > I would like to seek help with a SQL query that was developed and > tested with other SQL92 compliant databases. IIRC, allowing select items that are not in the group by but are functionally dependant on the group by columns w

Re: [GENERAL] SQL error - please help.

2005-08-22 Thread A. Kretschmer
am 23.08.2005, um 0:24:53 +1200 mailte Bernard folgendes: > SELECT > DEPARTMENT.PK, > DEPARTMENT.NAME, > MIN(PROJECT.VALUE)AS RATING > FROM DEPARTMENT, > PROJECT > WHERE DEPARTMENT.PK=PROJECT.DEPARTMENT_FK > GROUP BY DEPARTMENT.PK > ORDER BY DEPARTMENT.PK; > > ERROR: column "department.na

Re: [GENERAL] SQL error - please help.

2005-08-22 Thread Sean Davis
On 8/22/05 8:24 AM, "Bernard" <[EMAIL PROTECTED]> wrote: > Dear Postgresql specialists > > I would like to seek help with a SQL query that was developed and > tested with other SQL92 compliant databases. > > Please examine the following testcase and the result that I get: > > # su postgres > $

Re: [GENERAL] [SQL] ERROR: DefineIndex: index function must be

2003-07-25 Thread Stephan Szabo
On Fri, 25 Jul 2003, Stephan Szabo wrote: > On Fri, 25 Jul 2003, Elielson Fontanezi wrote: > > > What can I do in this case? > > I could not found anything about iscachable. > > > > > > postgres$ cat in.sql > > create index bt_proposta_f01 on proposta > > using btree (func_cod_secretaria(n

Re: [GENERAL] [SQL] ERROR: DefineIndex: index function must be marked iscachable

2003-07-25 Thread Stephan Szabo
On Fri, 25 Jul 2003, Elielson Fontanezi wrote: > What can I do in this case? > I could not found anything about iscachable. > > postgres$ cat in.sql > create index bt_proposta_f01 on proposta > using btree (func_cod_secretaria(nr_proponente)); > > postgres$ psql -d escola -f in.sql > psq