Re: Repeatable crash in pg_dump (with -d2 info)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sure; the function is created programmatically as part of schema creation, by the same user who owns (almost) everything else in the database.  The definition looks like this:

        CREATE OR REPLACE FUNCTION datastore_unpack(
            data_times TIMESTAMP WITH TIME ZONE[],
            data_values DOUBLE PRECISION[],
            OUT data_time TIMESTAMP WITH TIME ZONE,
            OUT data_value DOUBLE PRECISION
        ) RETURNS SETOF RECORD AS $$
            SELECT $1[rowx] AS data_time, $2[rowx] AS data_value
            FROM generate_series(1, array_upper($1, 1)) AS rowx;
        $$ LANGUAGE SQL STABLE;

It takes two parallel arrays and unpacks them into a set of records.

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux