forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite812458
committed
Several changes here, not very related but touching some of the same files.
* Buffer refcount cleanup (per my "progress report" to pghackers, 9/22).* Add links to backend PROC structs to sinval's array of per-backend info,and use these links for routines that need to check the state of allbackends (rather than the slow, complicated search of the ShmemIndexhashtable that was used before). Add databaseOID to PROC structs.* Use this to implement an interlock that prevents DESTROY DATABASE ofa database containing running backends. (It's a little tricky to preventa concurrently-starting backend from getting in there, since the newbackend is not able to lock anything at the time it tries to look upits database in pg_database. My solution is to recheck that the DB isOK at the end of InitPostgres. It may not be a 100% solution, but it'sa lot better than no interlock at all...)* In ALTER TABLE RENAME, flush buffers for the relation before doing therename of the physical files, to ensure we don't get failures later frommdblindwrt().* Update TRUNCATE patch so that it actually compiles against currentsources :-(.You should do "make clean all" after pulling these changes.1 parentad791c1 commite812458
File tree
43 files changed
+1209
-946
lines changed- src
- backend
- access
- gist
- hash
- heap
- rtree
- transam
- catalog
- commands
- executor
- storage
- buffer
- ipc
- lmgr
- smgr
- tcop
- utils
- init
- misc
- include
- executor
- nodes
- storage
- test/regress/output
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
43 files changed
+1209
-946
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
144 |
| - | |
| 144 | + | |
145 | 145 |
| |
146 | 146 |
| |
147 | 147 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
62 | 61 |
| |
63 | 62 |
| |
64 | 63 |
| |
| |||
101 | 100 |
| |
102 | 101 |
| |
103 | 102 |
| |
104 |
| - | |
| 103 | + | |
105 | 104 |
| |
106 | 105 |
| |
107 | 106 |
| |
|
Lines changed: 19 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
| |||
170 | 170 |
| |
171 | 171 |
| |
172 | 172 |
| |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
173 | 177 |
| |
174 | 178 |
| |
175 | 179 |
| |
| |||
826 | 830 |
| |
827 | 831 |
| |
828 | 832 |
| |
| 833 | + | |
| 834 | + | |
829 | 835 |
| |
830 | 836 |
| |
831 | 837 |
| |
| |||
906 | 912 |
| |
907 | 913 |
| |
908 | 914 |
| |
| 915 | + | |
| 916 | + | |
909 | 917 |
| |
910 | 918 |
| |
911 | 919 |
| |
| |||
1014 | 1022 |
| |
1015 | 1023 |
| |
1016 | 1024 |
| |
1017 |
| - | |
1018 |
| - | |
1019 | 1025 |
| |
1020 | 1026 |
| |
1021 | 1027 |
| |
| |||
1067 | 1073 |
| |
1068 | 1074 |
| |
1069 | 1075 |
| |
| 1076 | + | |
1070 | 1077 |
| |
1071 |
| - | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
1072 | 1086 |
| |
1073 |
| - | |
1074 |
| - | |
1075 |
| - | |
1076 |
| - | |
1077 |
| - | |
1078 |
| - | |
1079 |
| - | |
1080 |
| - | |
1081 |
| - | |
1082 |
| - | |
1083 |
| - | |
1084 |
| - | |
1085 | 1087 |
| |
1086 | 1088 |
| |
1087 | 1089 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 |
| - | |
| 138 | + | |
139 | 139 |
| |
140 | 140 |
| |
141 | 141 |
| |
|
Lines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
| 154 | + | |
154 | 155 |
| |
155 | 156 |
| |
156 | 157 |
| |
| |||
749 | 750 |
| |
750 | 751 |
| |
751 | 752 |
| |
752 |
| - | |
753 | 753 |
| |
| 754 | + | |
754 | 755 |
| |
755 | 756 |
| |
756 | 757 |
| |
| |||
929 | 930 |
| |
930 | 931 |
| |
931 | 932 |
| |
932 |
| - | |
| 933 | + | |
933 | 934 |
| |
934 | 935 |
| |
935 | 936 |
| |
936 | 937 |
| |
937 | 938 |
| |
938 | 939 |
| |
939 | 940 |
| |
940 |
| - | |
| 941 | + | |
| 942 | + | |
941 | 943 |
| |
942 | 944 |
| |
943 |
| - | |
| 945 | + | |
944 | 946 |
| |
945 | 947 |
| |
946 | 948 |
| |
|
0 commit comments
Comments
(0)