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:10 +01:00
parent ec34b8ee28
commit 276b5cf9ea
+3 -2
View File
@@ -79,8 +79,9 @@ $$ LANGUAGE 'plpgsql' VOLATILE STRICT;
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Return a set of {dbname, schema_name, table_name. updated_at} -- Return a set of (dbname, schema_name, table_name, updated_at)
CREATE OR REPLACE FUNCTION CDB_QueryTablesUpdatedAt(query text) -- 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) RETURNS TABLE(db_name text, schema_name text, table_name text, updated_at timestamptz)
AS $$ AS $$
WITH query_tables AS ( WITH query_tables AS (