[4] | 1 | --
|
---|
| 2 | -- Selected TOC Entries:
|
---|
| 3 | --
|
---|
| 4 | \connect - postgres
|
---|
| 5 |
|
---|
| 6 | --
|
---|
[59] | 7 | -- TOC Entry ID 18 (OID 16556)
|
---|
[4] | 8 | --
|
---|
| 9 | -- Name: "plpgsql_call_handler" () Type: FUNCTION Owner: postgres
|
---|
| 10 | --
|
---|
| 11 |
|
---|
| 12 | CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS '$libdir/plpgsql', 'plpgsql_call_handler' LANGUAGE 'C';
|
---|
| 13 |
|
---|
| 14 | --
|
---|
[59] | 15 | -- TOC Entry ID 19 (OID 16557)
|
---|
[4] | 16 | --
|
---|
| 17 | -- Name: plpgsql Type: PROCEDURAL LANGUAGE Owner:
|
---|
| 18 | --
|
---|
| 19 |
|
---|
| 20 | CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER "plpgsql_call_handler" LANCOMPILER '';
|
---|
| 21 |
|
---|
| 22 | \connect - ipdb
|
---|
| 23 |
|
---|
| 24 | --
|
---|
| 25 | -- TOC Entry ID 2 (OID 25848)
|
---|
| 26 | --
|
---|
| 27 | -- Name: allocations Type: TABLE Owner: ipdb
|
---|
| 28 | --
|
---|
| 29 |
|
---|
| 30 | CREATE TABLE "allocations" (
|
---|
| 31 | "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL,
|
---|
| 32 | "custid" character varying(16) DEFAULT '',
|
---|
| 33 | "type" character(2) DEFAULT '',
|
---|
| 34 | "city" character varying(30) DEFAULT '',
|
---|
| 35 | "description" character varying(64) DEFAULT '',
|
---|
| 36 | "notes" text,
|
---|
| 37 | "maskbits" integer DEFAULT 128,
|
---|
| 38 | Constraint "allocations_pkey" Primary Key ("cidr")
|
---|
| 39 | );
|
---|
| 40 |
|
---|
| 41 | --
|
---|
[59] | 42 | -- TOC Entry ID 3 (OID 25848)
|
---|
[4] | 43 | --
|
---|
[59] | 44 | -- Name: allocations Type: ACL Owner:
|
---|
| 45 | --
|
---|
| 46 |
|
---|
| 47 | REVOKE ALL on "allocations" from PUBLIC;
|
---|
| 48 | GRANT ALL on "allocations" to "kdeugau";
|
---|
| 49 | GRANT ALL on "allocations" to "ipdb";
|
---|
| 50 |
|
---|
| 51 | --
|
---|
| 52 | -- TOC Entry ID 4 (OID 25854)
|
---|
| 53 | --
|
---|
[4] | 54 | -- Name: customers Type: TABLE Owner: ipdb
|
---|
| 55 | --
|
---|
| 56 |
|
---|
| 57 | CREATE TABLE "customers" (
|
---|
| 58 | "custid" character varying(16) DEFAULT '' NOT NULL,
|
---|
| 59 | "name" character varying(64),
|
---|
| 60 | "street" character varying(25),
|
---|
| 61 | "street2" character varying(25),
|
---|
| 62 | "city" character varying(30),
|
---|
| 63 | "province" character(2),
|
---|
| 64 | "pocode" character varying(7),
|
---|
| 65 | "phone" character varying(15),
|
---|
| 66 | "abuse" character varying(50),
|
---|
| 67 | "def_rdns" character varying(40),
|
---|
| 68 | "description" text,
|
---|
| 69 | Constraint "customers_pkey" Primary Key ("custid")
|
---|
| 70 | );
|
---|
| 71 |
|
---|
| 72 | --
|
---|
[59] | 73 | -- TOC Entry ID 5 (OID 25854)
|
---|
[4] | 74 | --
|
---|
[59] | 75 | -- Name: customers Type: ACL Owner:
|
---|
[4] | 76 | --
|
---|
| 77 |
|
---|
[59] | 78 | REVOKE ALL on "customers" from PUBLIC;
|
---|
| 79 | GRANT ALL on "customers" to "kdeugau";
|
---|
| 80 | GRANT ALL on "customers" to "ipdb";
|
---|
[4] | 81 |
|
---|
| 82 | --
|
---|
[59] | 83 | -- TOC Entry ID 6 (OID 25866)
|
---|
[4] | 84 | --
|
---|
| 85 | -- Name: poolips Type: TABLE Owner: ipdb
|
---|
| 86 | --
|
---|
| 87 |
|
---|
| 88 | CREATE TABLE "poolips" (
|
---|
| 89 | "pool" cidr DEFAULT '255.255.255.255/32' NOT NULL,
|
---|
| 90 | "ip" cidr DEFAULT '255.255.255.255/32' NOT NULL,
|
---|
| 91 | "custid" character varying(16) DEFAULT '' NOT NULL,
|
---|
| 92 | "city" character varying(30) DEFAULT '',
|
---|
| 93 | "ptype" character(1) DEFAULT 'c' NOT NULL,
|
---|
| 94 | "available" character(1) DEFAULT 'y',
|
---|
| 95 | "notes" text,
|
---|
[59] | 96 | "description" character varying(64) DEFAULT '',
|
---|
[4] | 97 | CHECK (((available = 'y'::bpchar) OR (available = 'n'::bpchar))),
|
---|
| 98 | Constraint "poolips_pkey" Primary Key ("ip")
|
---|
| 99 | );
|
---|
| 100 |
|
---|
| 101 | --
|
---|
[59] | 102 | -- TOC Entry ID 7 (OID 25866)
|
---|
[4] | 103 | --
|
---|
[59] | 104 | -- Name: poolips Type: ACL Owner:
|
---|
| 105 | --
|
---|
| 106 |
|
---|
| 107 | REVOKE ALL on "poolips" from PUBLIC;
|
---|
| 108 | GRANT ALL on "poolips" to "kdeugau";
|
---|
| 109 | GRANT ALL on "poolips" to "ipdb";
|
---|
| 110 |
|
---|
| 111 | --
|
---|
| 112 | -- TOC Entry ID 8 (OID 25872)
|
---|
| 113 | --
|
---|
[4] | 114 | -- Name: masterblocks Type: TABLE Owner: ipdb
|
---|
| 115 | --
|
---|
| 116 |
|
---|
| 117 | CREATE TABLE "masterblocks" (
|
---|
| 118 | "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL,
|
---|
| 119 | Constraint "masterblocks_pkey" Primary Key ("cidr")
|
---|
| 120 | );
|
---|
| 121 |
|
---|
| 122 | --
|
---|
[59] | 123 | -- TOC Entry ID 9 (OID 25872)
|
---|
[4] | 124 | --
|
---|
[59] | 125 | -- Name: masterblocks Type: ACL Owner:
|
---|
| 126 | --
|
---|
| 127 |
|
---|
| 128 | REVOKE ALL on "masterblocks" from PUBLIC;
|
---|
| 129 | GRANT ALL on "masterblocks" to "kdeugau";
|
---|
| 130 | GRANT ALL on "masterblocks" to "ipdb";
|
---|
| 131 |
|
---|
| 132 | --
|
---|
| 133 | -- TOC Entry ID 10 (OID 25875)
|
---|
| 134 | --
|
---|
[4] | 135 | -- Name: routed Type: TABLE Owner: ipdb
|
---|
| 136 | --
|
---|
| 137 |
|
---|
| 138 | CREATE TABLE "routed" (
|
---|
| 139 | "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL,
|
---|
| 140 | "maskbits" integer DEFAULT 128,
|
---|
| 141 | "city" character varying(30) DEFAULT '',
|
---|
| 142 | Constraint "routed_pkey" Primary Key ("cidr")
|
---|
| 143 | );
|
---|
| 144 |
|
---|
| 145 | --
|
---|
[59] | 146 | -- TOC Entry ID 11 (OID 25875)
|
---|
[4] | 147 | --
|
---|
[59] | 148 | -- Name: routed Type: ACL Owner:
|
---|
| 149 | --
|
---|
| 150 |
|
---|
| 151 | REVOKE ALL on "routed" from PUBLIC;
|
---|
| 152 | GRANT ALL on "routed" to "kdeugau";
|
---|
| 153 | GRANT ALL on "routed" to "ipdb";
|
---|
| 154 |
|
---|
| 155 | --
|
---|
| 156 | -- TOC Entry ID 12 (OID 31131)
|
---|
| 157 | --
|
---|
[4] | 158 | -- Name: temp Type: TABLE Owner: ipdb
|
---|
| 159 | --
|
---|
| 160 |
|
---|
| 161 | CREATE TABLE "temp" (
|
---|
| 162 | "ofs" integer
|
---|
| 163 | );
|
---|
| 164 |
|
---|
[59] | 165 | --
|
---|
| 166 | -- TOC Entry ID 13 (OID 31131)
|
---|
| 167 | --
|
---|
| 168 | -- Name: temp Type: ACL Owner:
|
---|
| 169 | --
|
---|
| 170 |
|
---|
| 171 | REVOKE ALL on "temp" from PUBLIC;
|
---|
| 172 | GRANT ALL on "temp" to "kdeugau";
|
---|
| 173 | GRANT ALL on "temp" to "ipdb";
|
---|
| 174 |
|
---|
| 175 | --
|
---|
| 176 | -- TOC Entry ID 14 (OID 73917)
|
---|
| 177 | --
|
---|
| 178 | -- Name: searchme Type: VIEW Owner: ipdb
|
---|
| 179 | --
|
---|
| 180 |
|
---|
| 181 | CREATE VIEW "searchme" as SELECT allocations.cidr, allocations.custid, allocations."type", allocations.city, allocations.description FROM allocations UNION SELECT poolips.ip, poolips.custid, poolips.ptype, poolips.city, poolips.description FROM poolips;
|
---|
| 182 |
|
---|
| 183 | --
|
---|
| 184 | -- TOC Entry ID 15 (OID 73917)
|
---|
| 185 | --
|
---|
| 186 | -- Name: searchme Type: ACL Owner:
|
---|
| 187 | --
|
---|
| 188 |
|
---|
| 189 | REVOKE ALL on "searchme" from PUBLIC;
|
---|
| 190 | GRANT ALL on "searchme" to "kdeugau";
|
---|
| 191 | GRANT ALL on "searchme" to "ipdb";
|
---|
| 192 |
|
---|
| 193 | --
|
---|
| 194 | -- TOC Entry ID 16 (OID 91065)
|
---|
| 195 | --
|
---|
| 196 | -- Name: freeblocks Type: TABLE Owner: ipdb
|
---|
| 197 | --
|
---|
| 198 |
|
---|
| 199 | CREATE TABLE "freeblocks" (
|
---|
| 200 | "cidr" cidr DEFAULT '255.255.255.255/32' NOT NULL,
|
---|
| 201 | "maskbits" integer DEFAULT 128,
|
---|
| 202 | "city" character varying(30) DEFAULT '',
|
---|
| 203 | "routed" character(1) DEFAULT 'n',
|
---|
| 204 | Constraint "freeblocks_pkey" Primary Key ("cidr")
|
---|
| 205 | );
|
---|
| 206 |
|
---|
| 207 | --
|
---|
| 208 | -- TOC Entry ID 17 (OID 91065)
|
---|
| 209 | --
|
---|
| 210 | -- Name: freeblocks Type: ACL Owner:
|
---|
| 211 | --
|
---|
| 212 |
|
---|
| 213 | REVOKE ALL on "freeblocks" from PUBLIC;
|
---|
| 214 | GRANT ALL on "freeblocks" to "kdeugau";
|
---|
| 215 | GRANT ALL on "freeblocks" to "ipdb";
|
---|
| 216 |
|
---|