Re: Creating a new type
| От | Tom Lane |
|---|---|
| Тема | Re: Creating a new type |
| Дата | |
| Msg-id | 15256.1151506785@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Creating a new type ("Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br>) |
| Ответы |
RES: Creating a new type
|
| Список | pgsql-interfaces |
"Rodrigo Sakai" <rodrigo.sakai@zanthus.com.br> writes:
> So, when I execute an INSERT operation on this table, the functions that
> deals with this type need the id or name of the table that the data was
> inserted!
Why? Your example datatype doesn't seem to require any such thing.
> How can I get this ID or NAME inside this functions???
You can't. The question itself is bogus because it assumes that data
values only exist within tables. You could not have a transient value
of the datatype (eg, a function result) because that is not stored in
any table.
regards, tom lane
В списке pgsql-interfaces по дате отправления: