Revision 8082
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/functions.sql | ||
---|---|---|
476 | 476 |
|
477 | 477 |
|
478 | 478 |
-- |
479 |
-- Name: col_names(regtype); Type: FUNCTION; Schema: functions; Owner: - |
|
480 |
-- |
|
481 |
|
|
482 |
CREATE FUNCTION col_names(type regtype) RETURNS SETOF text |
|
483 |
LANGUAGE plpgsql STABLE |
|
484 |
AS $_$ |
|
485 |
BEGIN |
|
486 |
RETURN QUERY EXECUTE $$SELECT skeys(hstore(NULL::$$||type||$$))$$; |
|
487 |
END; |
|
488 |
$_$; |
|
489 |
|
|
490 |
|
|
491 |
-- |
|
479 | 492 |
-- Name: join_strs_transform(text, text, text); Type: FUNCTION; Schema: functions; Owner: - |
480 | 493 |
-- |
481 | 494 |
|
Also available in: Unified diff
schemas/functions.sql: Added col_names()