Re[2]: How to Alter tables with ARRAY? Help PLease

From: Igor <dbmanager(at)osb368(dot)nnov(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re[2]: How to Alter tables with ARRAY? Help PLease
Date: 2001-06-06 05:12:16
Message-ID: 363054631.20010606091216@osb368.nnov.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

Thank you for replay , but i still having problems with aray..

Well, i have a field OSTV which has dimention [1:9][1:6]
(i can see it in "SELECT array_dims(ostv) FROM mytable")

when i'm trying:
"update mytable set ostv [10][3]=333.00"
i got:
"Error while executing the query (non-fatal);
ERROR: Invalid array subscripts"

if i make empty field wiht the neccessary dimension [10][6]
i couldn't move data from old field , because after

"update mytable set ostvNewDim = ostvOldDim"

sets new dimension to old value

Tell me please, what to do?

TL> Just assign a new array value to the column. PG doesn't actually
TL> consider the dimensionality of an array to be part of the type
TL> specification; any size array will be accepted.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-06 05:25:06 Re: Alternate database locations
Previous Message Anand Raman 2001-06-06 04:49:11 Re: Specifying psql password on command line