This file is indexed.

/usr/share/pgmodeler/schemas/catalog/extension.sch is in pgmodeler-common 0.9.1~beta-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Catalog queries for extensions
# CAUTION: Do not modify this file unless you know what you are doing.
#          Code generation can be broken if incorrect changes are made.

# Extension exists only on PostgreSQL >= 9.1
%if {list} %and ({pgsql-ver} != "9.0") %then
   [SELECT ex.oid, extname AS name FROM pg_extension AS ex ]

   %if {schema} %then
    [ LEFT JOIN pg_namespace AS ns ON ex.extnamespace = ns.oid
      WHERE ns.nspname = ] '{schema}'
   %end

  %if {last-sys-oid} %then
    %if {schema} %then
     [ AND ]
    %else
     [ WHERE ]
    %end
     [ ex.oid ] {oid-filter-op} $sp {last-sys-oid}
  %end

%else
    %if {attribs} %and ({pgsql-ver} != "9.0")  %then
	[SELECT ex.oid, ex.extname AS name, ex.extversion AS cur_version, NULL AS old_version,
		ex.extowner AS owner, ex.extnamespace AS schema,
	  (SELECT CASE
		    WHEN  count(objid) >= 1 THEN TRUE
		    ELSE FALSE
		   END
	    FROM pg_depend AS _dp
	    LEFT JOIN pg_extension AS _ex ON _ex.oid=_dp.objid
	    WHERE  _dp.refobjid = ex.oid AND _dp.objid::regtype::text=ex.extname
	    AND _dp.classid::regclass::text = 'pg_type') AS handles_type_bool, ]

	  ({comment}) [ AS comment ]

	 [ FROM pg_extension AS ex ]

      %if {schema} %then
       [ LEFT JOIN pg_namespace AS ns ON ex.extnamespace = ns.oid ]
      %end

       %if {filter-oids} %or {schema} %then
	 [ WHERE ]

	 %if {filter-oids} %then
	   [ ex.oid IN (] {filter-oids} )

	   %if {schema} %then
	     [ AND ]
	   %end
	 %end

	 %if {schema} %then
	   [ nspname = ] '{schema}'
	 %end
       %end

       %if {last-sys-oid} %then
	 %if {filter-oids} %or {schema} %then
	   [ AND ]
	 %else
	   [ WHERE ]
	 %end
	 [ ex.oid ] {oid-filter-op} $sp {last-sys-oid}
       %end

    %end
%end