forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit34c6e65
committed
Make verify_compact_attribute available in non-assert builds
6f3820f adjusted the assert-enabled validation of the CompactAttributeto call a new external function to perform the validation. That commitmade it so the function was only available when building withUSE_ASSERT_CHECKING, and because TupleDescCompactAttr() is a staticinline function, the call to verify_compact_attribute() was compiledinto any extension which uses TupleDescCompactAttr(). This caused issuesfor such extensions when loading the assert-enabled extension intoPostgreSQL versions without asserts enabled due to that function beingunavailable in core.To fix this, make verify_compact_attribute() available unconditionally,but make it do nothing unless building with USE_ASSERT_CHECKING.Author: Andrew Kane <andrew@ankane.org>Reviewed-by: David Rowley <dgrowleyml@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CAOdR5yHfMEMW00XGo=v1zCVUS6Huq2UehXdvKnwtXPTcZwXhmg@mail.gmail.com1 parenta9dcbb4 commit34c6e65
2 files changed
+2
-5
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
121 |
| - | |
122 | 121 |
| |
123 | 122 |
| |
124 | 123 |
| |
| |||
132 | 131 |
| |
133 | 132 |
| |
134 | 133 |
| |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 |
| - | |
154 | 153 |
| |
155 |
| - | |
| 154 | + | |
156 | 155 |
| |
157 | 156 |
| |
158 | 157 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
161 |
| - | |
162 | 161 |
| |
163 |
| - | |
164 | 162 |
| |
165 | 163 |
| |
166 | 164 |
| |
|
0 commit comments
Comments
(0)