forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8be9317
committed
Use heap_inplace_update() to unset pg_database.dathasloginevt
Doing this instead of regular updates serves two purposes. First, that avoidspossible waiting on the row-level lock. Second, that avoids dealing withTOAST.It's known that changes made by heap_inplace_update() may be lost due toconcurrent normal updates. However, we are OK with that. The subsequentconnections will still have a chance to set "dathasloginevt" to false.Reported-by: Alexander LakhinDiscussion:https://postgr.es/m/e2a0248e-5f32-af0c-9832-a90d303c2c61%40gmail.com1 parent428e2de commit8be9317
1 file changed
+32
-4
lines changedLines changed: 32 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
| |||
943 | 944 |
| |
944 | 945 |
| |
945 | 946 |
| |
| 947 | + | |
| 948 | + | |
946 | 949 |
| |
947 |
| - | |
948 |
| - | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
949 | 965 |
| |
950 | 966 |
| |
951 |
| - | |
| 967 | + | |
952 | 968 |
| |
953 | 969 |
| |
954 | 970 |
| |
955 | 971 |
| |
956 | 972 |
| |
957 |
| - | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
958 | 986 |
| |
959 | 987 |
| |
960 | 988 |
| |
|
0 commit comments
Comments
(0)