Tablename.columnname%TYPE in Types On PostgreSQL 9.2

From: Adrien Besson <a(dot)besson04(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Tablename.columnname%TYPE in Types On PostgreSQL 9.2
Date: 2013-04-09 09:13:39
Message-ID: CAMATOSuONaDaS+wRr1kmeNmCUqrkS94BzSiNWU7ugF2RRFYGdw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello Everyone,

Trying to create a type using %Type seems not to work on PostgreSQL 9.2:

CREATE TYPE type1 AS (tvar_1 TABLE1. COL1%TYPE , tvar_2 INTEGER);

Returns

XX ERROR: syntax error at or near "%"

Where am I wrong ? Someone has an idea ?

Thanks a lot !

BESSON Adrien

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Hammers 2013-04-09 09:41:33 Queries seldomly take >4s while normally take <1ms?
Previous Message Jeff Janes 2013-04-09 03:46:42 Re: Inconsistent query performance