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