Commit 533020d
committed
Fix minor issues in psql's new \dAc and related commands.
The type-name pattern in \dAc and \dAf was matched only to the actual
pg_type.typname string, which is fairly user-unfriendly in cases where
that is not what's shown to the user by format_type (compare "_int4"
and "integer[]"). Make this code match what \dT does, i.e. match the
pattern against either typname or format_type() output. Also fix its
broken handling of schema-name restrictions. (IOW, make these
processSQLNamePattern calls match \dT's.) While here, adjust
whitespace to make the query a little prettier in -E output, too.
Also improve some inaccuracies and shaky grammar in the related
documentation.
Noted while working on a patch for intarray's opclasses; I wondered
why I couldn't get a match to "integer*" for the input type name.1 parent 6ee3b5f commit 533020d
File tree
3 files changed
+48
-27
lines changed- doc/src/sgml
- ref
- src/bin/psql
3 files changed
+48
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1410 | 1410 | | |
1411 | 1411 | | |
1412 | 1412 | | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1413 | 1422 | | |
1414 | 1423 | | |
1415 | 1424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
| 1248 | + | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | | - | |
| 1251 | + | |
1252 | 1252 | | |
1253 | 1253 | | |
1254 | | - | |
| 1254 | + | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | 1257 | | |
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
1271 | | - | |
| 1271 | + | |
1272 | 1272 | | |
1273 | 1273 | | |
1274 | | - | |
| 1274 | + | |
1275 | 1275 | | |
1276 | 1276 | | |
1277 | | - | |
| 1277 | + | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | 1280 | | |
| |||
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | | - | |
| 1295 | + | |
1296 | 1296 | | |
1297 | 1297 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | | - | |
| 1303 | + | |
1304 | 1304 | | |
1305 | 1305 | | |
1306 | 1306 | | |
| |||
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
1317 | | - | |
1318 | | - | |
| 1317 | + | |
| 1318 | + | |
1319 | 1319 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
1325 | 1327 | | |
1326 | 1328 | | |
1327 | 1329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6056 | 6056 | | |
6057 | 6057 | | |
6058 | 6058 | | |
6059 | | - | |
| 6059 | + | |
6060 | 6060 | | |
6061 | 6061 | | |
6062 | 6062 | | |
| |||
6110 | 6110 | | |
6111 | 6111 | | |
6112 | 6112 | | |
| 6113 | + | |
6113 | 6114 | | |
6114 | 6115 | | |
6115 | 6116 | | |
| |||
6120 | 6121 | | |
6121 | 6122 | | |
6122 | 6123 | | |
| 6124 | + | |
| 6125 | + | |
6123 | 6126 | | |
6124 | | - | |
| 6127 | + | |
| 6128 | + | |
| 6129 | + | |
| 6130 | + | |
6125 | 6131 | | |
6126 | 6132 | | |
6127 | 6133 | | |
| |||
6145 | 6151 | | |
6146 | 6152 | | |
6147 | 6153 | | |
6148 | | - | |
| 6154 | + | |
6149 | 6155 | | |
6150 | 6156 | | |
6151 | 6157 | | |
| |||
6190 | 6196 | | |
6191 | 6197 | | |
6192 | 6198 | | |
6193 | | - | |
| 6199 | + | |
6194 | 6200 | | |
6195 | 6201 | | |
6196 | 6202 | | |
6197 | | - | |
| 6203 | + | |
| 6204 | + | |
6198 | 6205 | | |
| 6206 | + | |
6199 | 6207 | | |
6200 | | - | |
6201 | | - | |
| 6208 | + | |
| 6209 | + | |
| 6210 | + | |
| 6211 | + | |
6202 | 6212 | | |
6203 | 6213 | | |
6204 | 6214 | | |
| |||
6223 | 6233 | | |
6224 | 6234 | | |
6225 | 6235 | | |
6226 | | - | |
| 6236 | + | |
6227 | 6237 | | |
6228 | 6238 | | |
6229 | 6239 | | |
| |||
6310 | 6320 | | |
6311 | 6321 | | |
6312 | 6322 | | |
6313 | | - | |
| 6323 | + | |
6314 | 6324 | | |
6315 | 6325 | | |
6316 | 6326 | | |
| |||
0 commit comments