Skip site navigation (1) Skip section navigation (2)

Re: How hard would it be to support LIKE in return declaration of generic record function calls ?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Hannu Krosing <hannu(at)2ndquadrant(dot)com>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
Date: 2012-05-03 12:13:09
Message-ID: CAFj8pRA5FMw9BMe4RaNPM3_hNz=53HQEu37FObZWVC6+UYr36w@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Hello

> (1 row)
>
> This works the same indeed, just seems to be a hack, though a cool
> one :)
>
> hannu=# insert into test
> hannu-# SELECT * FROM populate_record(null::test,
>                              '"id"=>"456", "data"=>"zzz"');
> INSERT 0 1

few years back I proposed "anytypename" type

with this feature, you can has some clean and more readable call

SELECT * FROM populate_record(test, ...)

Regards

Pavel

In response to

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2012-05-03 12:26:24
Subject: "unexpected EOF" messages
Previous:From: Hannu KrosingDate: 2012-05-03 10:19:25
Subject: Re: How hard would it be to support LIKE in return declaration of generic record function calls ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group