Project

General

Profile

« Previous | Next » 

Revision 10303

schemas/util.sql: added array_length(anyarray), which does not require a second dimension argument

View differences:

schemas/util.sql
535 535

  
536 536

  
537 537
--
538
-- Name: array_length(anyarray); Type: FUNCTION; Schema: util; Owner: -
539
--
540

  
541
CREATE FUNCTION array_length("array" anyarray) RETURNS integer
542
    LANGUAGE sql IMMUTABLE STRICT
543
    AS $_$
544
SELECT array_length($1, 1)
545
$_$;
546

  
547

  
548
--
538 549
-- Name: cluster_index(regclass); Type: FUNCTION; Schema: util; Owner: -
539 550
--
540 551

  

Also available in: Unified diff