forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc9eeef2
committed
Disallow extended statistics on system columns
Since introduction of extended statistics, we've disallowed referencesto system columns. So for example CREATE STATISTICS s ON ctid FROM t;would fail. But with extended statistics on expressions, it was possibleto work around this limitation quite easily CREATE STATISTICS s ON (ctid::text) FROM t;This is an oversight ina4d75c8, fixed by adding a simple check.Backpatch to PostgreSQL 14, where support for extended statistics onexpressions was introduced.Backpatch-through: 14Discussion:https://postgr.es/m/20210816013255.GS10479%40telsasoft.com1 parentd5eeb51 commitc9eeef2
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
| 291 | + | |
| 292 | + | |
291 | 293 |
| |
292 | 294 |
| |
293 | 295 |
| |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
294 | 309 |
| |
295 | 310 |
| |
296 | 311 |
| |
|
0 commit comments
Comments
(0)