Re: [GENERAL] create view problem

2006-06-05 Thread Tom Lane
"Chris Velevitch" <[EMAIL PROTECTED]> writes: > But, wouldn't you want to see the execution plan for the select > statement that appears in the create? Then give the EXPLAIN the select statement that appears in the create. Logically, EXPLAIN of a DDL statement would tell you about the costs of pe

Re: [GENERAL] create view problem

2006-06-05 Thread Chris Velevitch
On 6/5/06, Thomas Hallgren wrote: Chris Velevitch wrote: > Why doesn't explain work with create views? There's nothing in the > documentation saying it shouldn't. > No? The documentation for explain clearly states that the statement that follow the EXPLAIN keyword is "Any SELECT, INSERT, UPDATE

Re: [GENERAL] create view problem

2006-06-05 Thread Thomas Hallgren
Chris Velevitch wrote: Why doesn't explain work with create views? There's nothing in the documentation saying it shouldn't. > No? The documentation for explain clearly states that the statement that follow the EXPLAIN keyword is "Any SELECT, INSERT, UPDATE, DELETE, EXECUTE, or DECLARE statemen

Re: [GENERAL] create view problem

2006-06-04 Thread Chris Velevitch
On 6/3/06, Chris Velevitch wrote: On 6/2/06, Tom Lane wrote: > "Chris Velevitch" writes: > > I'm using pg 7.4.5 (cygwin) on win xp sp1. > > When I enter:- > > create view v1 as select * from t1; > > I get:- > > ERROR: syntax error at or near "view" at character 16 > > Repeatably? > > "vi

Re: [GENERAL] create view problem

2006-06-02 Thread Chris Velevitch
On 6/2/06, Tom Lane wrote: "Chris Velevitch" writes: > I'm using pg 7.4.5 (cygwin) on win xp sp1. > When I enter:- > create view v1 as select * from t1; > I get:- > ERROR: syntax error at or near "view" at character 16 Repeatably? "view" is not nearly 16 characters into that command.

Re: [GENERAL] create view problem

2006-06-02 Thread Tom Lane
"Chris Velevitch" <[EMAIL PROTECTED]> writes: > I'm using pg 7.4.5 (cygwin) on win xp sp1. > When I enter:- > create view v1 as select * from t1; > I get:- > ERROR: syntax error at or near "view" at character 16 Repeatably? "view" is not nearly 16 characters into that command. I think y

[GENERAL] create view problem

2006-06-02 Thread Chris Velevitch
I'm using pg 7.4.5 (cygwin) on win xp sp1. When I enter:- create view v1 as select * from t1; I get:- ERROR: syntax error at or near "view" at character 16 Why? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au ---(

[GENERAL] create view problem

2004-10-17 Thread Simon Moses
dear sir, i am trying to create view with following query create view salesQ as select * from sales, customer where sales.customerkey = customer.customerkey; it is giving ERROR: column "customerkey" duplicated create view salesQ as select sales.*, customer.* from sales, customer where sales.c