Revision 8104
Added by Aaron Marcuse-Kubitza over 11 years ago
functions.sql | ||
---|---|---|
476 | 476 |
|
477 | 477 |
|
478 | 478 |
-- |
479 |
-- Name: cluster_index(regclass); Type: FUNCTION; Schema: functions; Owner: - |
|
480 |
-- |
|
481 |
|
|
482 |
CREATE FUNCTION cluster_index(table_ regclass) RETURNS regclass |
|
483 |
LANGUAGE sql STABLE STRICT |
|
484 |
AS $_$ |
|
485 |
SELECT indexrelid FROM pg_index WHERE indrelid = $1 AND indisclustered |
|
486 |
$_$; |
|
487 |
|
|
488 |
|
|
489 |
-- |
|
479 | 490 |
-- Name: col_global_names(regtype); Type: FUNCTION; Schema: functions; Owner: - |
480 | 491 |
-- |
481 | 492 |
|
Also available in: Unified diff
schemas/functions.sql: Added cluster_index()