text: {#
   # pgAdmin 4 - PostgreSQL Tools
   #
   # Copyright (C) 2013 - 2017, The pgAdmin Development Team
   # This software is released under the PostgreSQL Licence
   #}
  SELECT ct.conindid as oid
  FROM pg_constraint ct
  WHERE contype='{{constraint_type}}' AND
  ct.conname = {{ name|qtLiteral }};