[DOCS] Missing doc on expression format for ALTER TABLE

2005-03-26 Thread Josh Berkus
Folks,

I've noticed that this statement is missing something:

(from sql-altertable.sgml):

ALTER COLUMN TYPE

 This form changes the type of a column of a table. Indexes and simple table 
constraints involving the column will be automatically converted to use the 
new column type by reparsing the originally supplied expression. The optional 
USING clause specifies how to compute the new column value from the old; if 
omitted, the default conversion is the same as an assignment cast from old 
data type to new. A USING clause must be provided if there is no implicit or 
assignment cast from old to new type. 

... nowhere in this file (or anywhere else that I can tell) is the syntax for 
the USING expression defined.

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])


Re: [DOCS] Missing doc on expression format for ALTER TABLE

2005-03-26 Thread Tom Lane
Josh Berkus  writes:
> ... nowhere in this file (or anywhere else that I can tell) is the syntax for
> the USING expression defined.

Hm?  It says

ALTER [ COLUMN ] column TYPE type [ USING expression ]

Surely you're not expecting it to repeat the complete syntax for
.

regards, tom lane

---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]