Commit 1826987
committed
Use a bitmask to represent role attributes
The previous representation using a boolean column for each attribute
would not scale as well as we want to add further attributes.
Extra auxilliary functions are added to go along with this change, to
make up for the lost convenience of access of the old representation.
Catalog version bumped due to change in catalogs and the new functions.
Author: Adam Brightwell, minor tweaks by Álvaro
Reviewed by: Stephen Frost, Andres Freund, Álvaro Herrera1 parent 7eca575 commit 1826987Copy full SHA for 1826987
File tree
Expand file treeCollapse file tree
30 files changed
+798
-372
lines changedOpen diff view settings
Filter options
- doc/src/sgml
- src
- backend
- access/transam
- catalog
- commands
- replication
- logical
- rewrite
- utils
- adt
- init
- misc
- bin/pg_dump
- include
- catalog
- nodes
- utils
- test/regress/expected
Expand file treeCollapse file tree
30 files changed
+798
-372
lines changedOpen diff view settings
Collapse file
+86-41Lines changed: 86 additions & 41 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1391 | 1391 | |
1392 | 1392 | |
1393 | 1393 | |
1394 | | - |
1395 | | - |
| 1394 | + |
| 1395 | + |
| 1396 | + |
| 1397 | + |
| 1398 | + |
| 1399 | + |
| 1400 | + |
| 1401 | + |
| 1402 | + |
| 1403 | + |
| 1404 | + |
| 1405 | + |
| 1406 | + |
| 1407 | + |
| 1408 | + |
| 1409 | + |
| 1410 | + |
| 1411 | + |
| 1412 | + |
| 1413 | + |
| 1414 | + |
| 1415 | + |
| 1416 | + |
| 1417 | + |
| 1418 | + |
| 1419 | + |
| 1420 | + |
| 1421 | + |
| 1422 | + |
| 1423 | + |
| 1424 | + |
| 1425 | + |
| 1426 | + |
| 1427 | + |
| 1428 | + |
| 1429 | + |
| 1430 | + |
| 1431 | + |
| 1432 | + |
| 1433 | + |
| 1434 | + |
| 1435 | + |
| 1436 | + |
| 1437 | + |
| 1438 | + |
| 1439 | + |
| 1440 | + |
| 1441 | + |
| 1442 | + |
| 1443 | + |
| 1444 | + |
| 1445 | + |
| 1446 | + |
| 1447 | + |
| 1448 | + |
| 1449 | + |
| 1450 | + |
| 1451 | + |
| 1452 | + |
1396 | 1453 | |
| 1454 | + |
1397 | 1455 | |
1398 | 1456 | |
1399 | 1457 | |
1400 | | - |
1401 | | - |
1402 | | - |
1403 | | - |
| 1458 | + |
| 1459 | + |
| 1460 | + |
| 1461 | + |
| 1462 | + |
| 1463 | + |
1404 | 1464 | |
1405 | 1465 | |
1406 | 1466 | |
1407 | | - |
1408 | | - |
| 1467 | + |
| 1468 | + |
1409 | 1469 | |
| 1470 | + |
1410 | 1471 | |
1411 | 1472 | |
1412 | 1473 | |
1413 | | - |
1414 | | - |
| 1474 | + |
| 1475 | + |
1415 | 1476 | |
| 1477 | + |
1416 | 1478 | |
1417 | 1479 | |
1418 | 1480 | |
1419 | | - |
1420 | | - |
| 1481 | + |
| 1482 | + |
1421 | 1483 | |
1422 | 1484 | |
1423 | 1485 | |
1424 | 1486 | |
| 1487 | + |
1425 | 1488 | |
1426 | 1489 | |
1427 | 1490 | |
1428 | | - |
1429 | | - |
| 1491 | + |
| 1492 | + |
1430 | 1493 | |
1431 | 1494 | |
1432 | 1495 | |
1433 | 1496 | |
| 1497 | + |
1434 | 1498 | |
1435 | 1499 | |
1436 | 1500 | |
1437 | | - |
1438 | | - |
| 1501 | + |
| 1502 | + |
1439 | 1503 | |
1440 | 1504 | |
1441 | 1505 | |
1442 | 1506 | |
1443 | 1507 | |
1444 | 1508 | |
| 1509 | + |
1445 | 1510 | |
1446 | 1511 | |
1447 | 1512 | |
1448 | | - |
1449 | | - |
| 1513 | + |
| 1514 | + |
1450 | 1515 | |
1451 | | - |
1452 | | - |
1453 | | - |
1454 | | - |
1455 | | - |
1456 | | - |
1457 | | - |
1458 | | - |
1459 | | - |
1460 | | - |
1461 | | - |
1462 | | - |
1463 | | - |
1464 | | - |
1465 | | - |
1466 | | - |
1467 | | - |
| 1516 | + |
| 1517 | + |
1468 | 1518 | |
| 1519 | + |
1469 | 1520 | |
1470 | 1521 | |
1471 | | - |
1472 | | - |
1473 | | - |
1474 | | - |
1475 | | - |
1476 | | - |
1477 | 1522 | |
1478 | 1523 | |
1479 | 1524 | |
|
Collapse file
+127Lines changed: 127 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15139 | 15139 | |
15140 | 15140 | |
15141 | 15141 | |
| 15142 | + |
| 15143 | + |
| 15144 | + |
| 15145 | + |
| 15146 | + |
| 15147 | + |
| 15148 | + |
| 15149 | + |
| 15150 | + |
| 15151 | + |
| 15152 | + |
| 15153 | + |
| 15154 | + |
| 15155 | + |
| 15156 | + |
| 15157 | + |
| 15158 | + |
| 15159 | + |
| 15160 | + |
| 15161 | + |
| 15162 | + |
| 15163 | + |
| 15164 | + |
| 15165 | + |
| 15166 | + |
| 15167 | + |
| 15168 | + |
| 15169 | + |
| 15170 | + |
| 15171 | + |
| 15172 | + |
| 15173 | + |
| 15174 | + |
| 15175 | + |
| 15176 | + |
| 15177 | + |
| 15178 | + |
| 15179 | + |
| 15180 | + |
| 15181 | + |
| 15182 | + |
| 15183 | + |
| 15184 | + |
| 15185 | + |
| 15186 | + |
| 15187 | + |
| 15188 | + |
| 15189 | + |
| 15190 | + |
| 15191 | + |
| 15192 | + |
| 15193 | + |
| 15194 | + |
| 15195 | + |
| 15196 | + |
| 15197 | + |
| 15198 | + |
| 15199 | + |
| 15200 | + |
| 15201 | + |
| 15202 | + |
| 15203 | + |
| 15204 | + |
| 15205 | + |
| 15206 | + |
| 15207 | + |
| 15208 | + |
| 15209 | + |
| 15210 | + |
| 15211 | + |
| 15212 | + |
| 15213 | + |
| 15214 | + |
| 15215 | + |
| 15216 | + |
| 15217 | + |
| 15218 | + |
| 15219 | + |
| 15220 | + |
| 15221 | + |
| 15222 | + |
| 15223 | + |
| 15224 | + |
| 15225 | + |
| 15226 | + |
| 15227 | + |
| 15228 | + |
| 15229 | + |
| 15230 | + |
| 15231 | + |
| 15232 | + |
| 15233 | + |
| 15234 | + |
| 15235 | + |
| 15236 | + |
| 15237 | + |
| 15238 | + |
| 15239 | + |
| 15240 | + |
| 15241 | + |
| 15242 | + |
| 15243 | + |
| 15244 | + |
| 15245 | + |
| 15246 | + |
| 15247 | + |
| 15248 | + |
| 15249 | + |
| 15250 | + |
| 15251 | + |
| 15252 | + |
| 15253 | + |
| 15254 | + |
| 15255 | + |
| 15256 | + |
| 15257 | + |
| 15258 | + |
| 15259 | + |
| 15260 | + |
| 15261 | + |
| 15262 | + |
| 15263 | + |
| 15264 | + |
| 15265 | + |
| 15266 | + |
| 15267 | + |
| 15268 | + |
15142 | 15269 | |
15143 | 15270 | |
15144 | 15271 | |
|
Collapse file
src/backend/access/transam/xlogfuncs.c
Copy file name to clipboardExpand all lines: src/backend/access/transam/xlogfuncs.c+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
| 30 | + |
30 | 31 | |
31 | 32 | |
32 | 33 | |
| ||
54 | 55 | |
55 | 56 | |
56 | 57 | |
57 | | - |
| 58 | + |
58 | 59 | |
59 | 60 | |
60 | 61 | |
| ||
82 | 83 | |
83 | 84 | |
84 | 85 | |
85 | | - |
| 86 | + |
86 | 87 | |
87 | 88 | |
88 | 89 | |
|
Collapse file
src/backend/catalog/Catalog.pm
Copy file name to clipboardExpand all lines: src/backend/catalog/Catalog.pm+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
176 | 176 | |
177 | 177 | |
178 | 178 | |
179 | | - |
| 179 | + |
180 | 180 | |
181 | 181 | |
182 | 182 | |
|
Collapse file
src/backend/catalog/Makefile
Copy file name to clipboardExpand all lines: src/backend/catalog/Makefile+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
| 31 | + |
32 | 32 | |
33 | 33 | |
34 | 34 | |
|
0 commit comments