This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- SQL function to test if two json values are equal | |
-- requires PostgreSQL 9.3+ | |
CREATE OR REPLACE FUNCTION json_equals(json, json) | |
RETURNS BOOLEAN | |
LANGUAGE sql | |
IMMUTABLE | |
STRICT | |
AS $function$ | |
SELECT CASE f1 |