Re: [HACKERS] WITH Support

2006-12-29 Thread Edwin S. Ramirez
The WITH that I am thinking about, lets you define and reuse queries which are executed once. For example: WITH MySummary AS (*SELECT b.dept_name, Sum(Salary) AS total_sal FROM emp a join dept b on (a.dept_id = b.dept_id) GROUP BY b.dept_name*) SELECT dept_name, total_sal //FROM MySumm

[HACKERS] Transaction Aborted

2005-02-20 Thread Edwin S. Ramirez
this? -Thanks, Edwin S. Ramirez ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [HACKERS] Transaction aborts on syntax error.

2004-06-02 Thread Edwin S. Ramirez
Hello, I have a much clearer picture of the issue. So, does this mean that with nested transactions, all statements will execute within a mini-transaction, which may be executed within a branch of user defined sub-transactions. Such that: begin ... ... begin ... ... mini-tr

Re: [HACKERS] Transaction aborts on syntax error.

2004-02-14 Thread Edwin S. Ramirez
Can we clarify what is meant by the client? It is my expectation/desire that the client library would handle this as a setting similar to "AutoCommit", which would implicitly protect each statement within a nested block (savepoint), causing only itself to abort. Such as, "OnError=>[abort|continue

Re: [HACKERS] Transaction aborts on syntax error.

2004-02-14 Thread Edwin S. Ramirez
> Oh, yea, that would be bad. So you want to invalidate the entire > session on any error? That could be done. > > -- > Bruce Momjian| http://candle.pha.pa.us > [EMAIL PROTECTED] | (610) 359-1001 Well, that's exactly the current behaviour, which crea

[HACKERS] Update Syntax

2004-01-31 Thread Edwin S. Ramirez
Hello, I need Postgres support for the following update syntax : update table1 set (col1, col2, col3) = (select f1, f2, f3 from table2 where id=5) where rownum=3; update table1 set (col1, col2, col3) = (select f1, f2, f3 from table2 where id=table1.parentid) where rownum=3; These type of update

[HACKERS] Transaction aborts on syntax error.

2004-01-31 Thread Edwin S. Ramirez
Hello, Is is possible to change the transaction behaviour not to abort when a syntax error occurs. I've done some searches on the list, and have not found anything. -ESR- ---(end of broadcast)--- TIP 6: Have you searched our list archives?

[HACKERS] update syntax

2004-01-18 Thread Edwin S. Ramirez
Hello, Are update statements like: update t1 set (f1, f2, f3) = (select t1, t2, t3 from tab1 where id=5) where id=3 standard. Any hope of supporting this in Postgres? -Edwin S. Ramirez- ---(end of broadcast)--- TIP 9: the planner will ignore

Re: [HACKERS] Postgres 7.3.5 and count('x')

2003-12-09 Thread Edwin S. Ramirez
I tried : select count('x') from patients; And I get the same error.  select count('x'); should return the same as select count(*); which returns 1. Previous Postgres versions returned 1. -ESR- Peter Eisentraut wrote: Tom Lane wrote: Bruce Momjian <[EMAIL PROTECTED]> writes:

[HACKERS] Postgres 7.3.5 and count('x')

2003-12-05 Thread Edwin S. Ramirez
Hello, It appears that the count('x') will no longer work without a type cast. Is this on purpose? I've already modified my code to use count(*) instead, but I decided to mention it anyway. warehouse=# select count('x') ; ERROR: cannot accept a value of type any warehouse=# select count('x'::t

[HACKERS] Oracle Decode Function

2002-07-25 Thread Edwin S. Ramirez
Hello, I would like to implement a function similar to the Decode function in Oracle. I was wondering if it is possible to accept a variable number of parameters (array??). Thanks, Edwin S. Ramirez ---(end of broadcast)--- TIP 5: Have you