You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTNULLAS TABLE_CAT,
n.nspnameAS TABLE_SCHEM,
ct.relnameAS TABLE_NAME,
a.attnameAS COLUMN_NAME,
(
information_schema._pg_expandarray(i.indkey)
).n AS KEY_SEQ,
ci.relnameAS PK_NAME,
information_schema._pg_expandarray(i.indkey) AS KEYS,
a.attnumAS A_ATTNUM
FROMpg_catalog.pg_class ct
JOINpg_catalog.pg_attribute a ON (ct.oid=a.attrelid)
JOINpg_catalog.pg_namespace n ON (ct.relnamespace=n.oid)
JOINpg_catalog.pg_index i ON (a.attrelid=i.indrelid)
JOINpg_catalog.pg_class ci ON (ci.oid=i.indexrelid)
WHERE
true
ANDn.nspname='public'ANDct.relname='sentences'ANDi.indisprimary
I have ensured that all features have been supported except _pg_expandarray. Popular PG-compatible databases all have supported it. This is the main blocker for Metabase to load RW schemas.
The text was updated successfully, but these errors were encountered:
/* Expand any 1-D array into a set with integers 1..N */CREATEFUNCTION_pg_expandarray(IN anyarray, OUT x anyelement, OUT n int)
RETURNS SETOF RECORD
LANGUAGE sql STRICT IMMUTABLE PARALLEL SAFE
AS'select $1[s], s operator(pg_catalog.-) pg_catalog.array_lower($1,1) operator(pg_catalog.+) 1 from pg_catalog.generate_series(pg_catalog.array_lower($1,1), pg_catalog.array_upper($1,1), 1) as g(s)';
I have ensured that all features have been supported except
_pg_expandarray
. Popular PG-compatible databases all have supported it. This is the main blocker for Metabase to load RW schemas.The text was updated successfully, but these errors were encountered: