pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: mario.splivalo@mobart.hr
Cc: pgsql-sql@postgresql.org
Subject: Re: INSERTing values from usertypes how-to?
Date: Thu, 27 Apr 2006 12:34:25 -0400
Message-ID: <12063.1146155665@sss.pgh.pa.us> (raw)
In-Reply-To: <1146152613.19362.11.camel@localhost.localdomain>
References: <1146152613.19362.11.camel@localhost.localdomain>

Mario Splivalo <mario.splivalo@mobart.hr> writes:
> Comming back after SELECTing into usertypes, is there a nice way to
> insert data into table from usertype, in a nice way?

Try
	insert into tblA values (insert_tblA.*);

This works in CVS HEAD at least, not sure how far back.

			regards, tom lane



view thread (2+ messages)

Message-ID: <12063.1146155665@sss.pgh.pa.us>
Permalink:  ../12063.1146155665@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12063.1146155665@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, mario.splivalo@mobart.hr
  Subject: Re: INSERTing values from usertypes how-to?
  In-Reply-To: <12063.1146155665@sss.pgh.pa.us>

* 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