Project

General

Profile

« Previous | Next » 

Revision 12565

schemas/util.sql: diff(text, text): automatically create a keys() function for the base type. this avoids the need to create keys() functions manually for the numerous queries that need them.

View differences:

trunk/schemas/util.sql
1057 1057
BEGIN
1058 1058
	PERFORM util.use_schema($3); -- includes util.%== as default/fallback
1059 1059
	
1060
	PERFORM util.mk_keys_func(pg_typeof($3));
1060 1061
	RETURN QUERY
1061 1062
		SELECT * FROM util.eval2col_pair(util.mk_diff_query($1, $2,
1062 1063
$$/* need to explicitly cast each side to the return type because this does not

Also available in: Unified diff