Re: [GENERAL] Where are PL/pgsql definitions kept?

2004-03-12 Thread Jerry LeVan
Ahh, thank you, the definition is actually stored in pg_proc in the prosrc column. I have been examining the system tables using my home brewed BiggerSQL Postgresql Database Browser ( http://homepage.mac.com/levanj/Cocoa ) a MacOS X utility. BiggerSQL displays tables in a table format, one row per

Re: [GENERAL](THE_ANSWER) What is the syntax for UPDATE from one

2004-03-12 Thread pw
Thanks to everyone who helped. I found the solution just by tooling with the SQL syntax. FYI, the correct syntax is: UPDATE destination_table SET dest_column=A FROM (SELECT src_column as A, src_link_col FROM src_table) AS J WHERE src_link_col=dst_link_col; Pete pw wrote: Hello, What is the pr

Re: [GENERAL] Where are PL/pgsql definitions kept?

2004-03-12 Thread Richard Huxton
On Friday 12 March 2004 20:12, Jerry LeVan wrote: > > Is it possible to recover the text of a function definition from within > postgresql? In psql: \df+ my_func_name To see how that works, start psql with -E -- Richard Huxton Archonet Ltd ---(end of broadcast)-

[GENERAL] Where are PL/pgsql definitions kept?

2004-03-12 Thread Jerry LeVan
Hi, I just upgraded to 7.4.2 today...I have started looking at PL/PGsql functions and noticed that the pg_dumpall and pg_dump commands are able to recover the text for the function definitions. I have examined ( I think ) every table in my catalog and have not been able to find the text definit

Re: [GENERAL] What is the syntax for UPDATE from one table to another?

2004-03-12 Thread Bruno Wolff III
On Fri, Mar 12, 2004 at 09:40:13 -0800, pw <[EMAIL PROTECTED]> wrote: > > Hello, > > What is the proper syntax for updating a column inone table from > a column in another? > > I have tried this: > > UPDATE destination_table FROM source_table SET > destination_table.column_one = source_table

Re: [GENERAL] What is the syntax for UPDATE from one table to another?

2004-03-12 Thread Jeff
On Mar 12, 2004, at 12:40 PM, pw wrote: Hello, What is the proper syntax for updating a column inone table from a column in another? I have tried this: UPDATE destination_table FROM source_table SET destination_table.column_one = source_table.column_b WHERE constraint; update destination_table

Re: [GENERAL] Question on Opteron performance

2004-03-12 Thread Reece Hart
On Wed, 2004-03-10 at 18:23, William Yu wrote: At this time, only Newisys offers a Quad Opteron box and it carries a hefty premium. (Sun's upcoming 4X machine is a rebadged Newisys machine and it's possible HP's will be also.) There are several vendors with quad opterons out there. Off the

[GENERAL] What is the syntax for UPDATE from one table to another?

2004-03-12 Thread pw
Hello, What is the proper syntax for updating a column inone table from a column in another? I have tried this: UPDATE destination_table FROM source_table SET destination_table.column_one = source_table.column_b WHERE constraint; This fails, so I must have the syntax incorrect. Thanks for any

Re: [GENERAL] Composite types in tables

2004-03-12 Thread Chris Travers
This has been recently covered in a discussion both on this list and on Hackers. It is not easy to do, apparently, but it is on the radar. Check the archives. Best Wishes, Chris Travers On Tuesday 02 March 2004 09:53, you wrote: > Are there any plans for PostGreSQL to support something like th

[GENERAL] Problem with Java during make install 7.4.1 and 7.4.2

2004-03-12 Thread Jerry LeVan
On MacOS X 10.3.2 and latest everything I get the following error during make install. On 7.4.1 my fix was make and make install without java, then rebuild and install on the java stuff. Looks like I have to do the same again with 7.4.2 --Jerry mkdir /usr/local/pgsql/share/java /usr/local/ant

Re: [GENERAL] postgres FROM clause problem

2004-03-12 Thread Paolo Tavalazzi
Alle 18:53, giovedì 11 marzo 2004, hai scritto: > Paolo Tavalazzi <[EMAIL PROTECTED]> writes: > > [ query plans after updating to 7.4.2 ] > > Okay, they're certainly a lot closer than before, so I think I was right > that you were getting bitten somehow by the pg_statistic alignment > problem. It

Re: [GENERAL] postgres FROM clause problem (GROUP BY subquestion)

2004-03-12 Thread Paolo Tavalazzi
Alle 20:14, giovedì 11 marzo 2004, hai scritto: > On Thu, Mar 11, 2004 at 09:43:57 +0100, > > Paolo Tavalazzi <[EMAIL PROTECTED]> wrote: > > Alle 19:12, mercoledì 10 marzo 2004, hai scritto: > > > On Wed, Mar 10, 2004 at 18:33:41 +0100, > > > > > > Paolo Tavalazzi <[EMAIL PROTECTED]> wrote: > >