Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- postgres=# create or replace function a (b anyelement) returns anyelement as $$ select b $$ language sql;
- CREATE FUNCTION
- postgres=# select pg_typeof(a(1::bigint));
- pg_typeof
- -----------
- bigint
- (1 row)
- postgres=# select pg_typeof(a(1::text));
- pg_typeof
- -----------
- text
- (1 row)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement