pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Emi Lu <emilu@encs.concordia.ca>
To: pgsql-sql@postgresql.org
Subject: force view column varchar(32) to varchar(128)
Date: Fri, 19 Nov 2010 10:02:25 -0500
Message-ID: <4CE69181.1050803@encs.concordia.ca> (raw)
In-Reply-To: <C4DAC901169B624F933534A26ED7DF31034BB8DC@JENMAIL01.ad.intershop.net>
References: <216FFB77CBFAEE4B8EE4DF0A939FF1D101839A@mail-001.corp.automotive.com>
	<48DA836F3865C54B8FBF424A3B775AF6012D11337B@Exchange-Server>
	<C4DAC901169B624F933534A26ED7DF31034BB8DC@JENMAIL01.ad.intershop.net>

Hello,

Is there a way to force the view column change from varhcar(32) to 
varchar(128)?

Example:
===================
v1 (id varchar(32) ... )

There are more than 1000 other views depend on v1.

Instead of recreating all other 1000 views, is there a way postgresql 
8.3 can do/accept:

create or replace v1 AS

select id::varchar(128), ......

Thanks a lot!
--
Lu Ying




view thread (3+ messages)  latest in thread

Message-ID: <4CE69181.1050803@encs.concordia.ca>
Permalink:  ../4CE69181.1050803@encs.concordia.ca/
Also on:    postgresql.org/message-id/4CE69181.1050803@encs.concordia.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: emilu@encs.concordia.ca
  Subject: Re: force view column varchar(32) to varchar(128)
  In-Reply-To: <4CE69181.1050803@encs.concordia.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox