Re: How hard would it be to support LIKE in return declaration of generic record function calls ? - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
Date
Msg-id CAFj8pRA5FMw9BMe4RaNPM3_hNz=53HQEu37FObZWVC6+UYr36w@mail.gmail.com
Whole thread Raw
In response to Re: How hard would it be to support LIKE in return declaration of generic record function calls ?  (Hannu Krosing <hannu@2ndQuadrant.com>)
Responses Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
List 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


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: How hard would it be to support LIKE in return declaration of generic record function calls ?
Next
From: Magnus Hagander
Date:
Subject: "unexpected EOF" messages