Rename func to CDB_QueryTables_Updated_At

s/CDB_QueryTablesUpdatedAt/CDB_QueryTables_Updated_At and also add a bit
more inline doc.
This commit is contained in:
Rafa de la Torre
2016-02-09 13:29:04 +01:00
parent ec34b8ee28
commit 276b5cf9ea

View File

@@ -79,8 +79,9 @@ $$ LANGUAGE 'plpgsql' VOLATILE STRICT;
--------------------------------------------------------------------------------
-- Return a set of {dbname, schema_name, table_name. updated_at}
CREATE OR REPLACE FUNCTION CDB_QueryTablesUpdatedAt(query text)
-- Return a set of (dbname, schema_name, table_name, updated_at)
-- This assumes the local (schema_name, table_name) maps to the remote one with the same name
CREATE OR REPLACE FUNCTION CDB_QueryTables_Updated_At(query text)
RETURNS TABLE(db_name text, schema_name text, table_name text, updated_at timestamptz)
AS $$
WITH query_tables AS (