forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2ff74ef
committed
Provide better message when CREATE EXTENSION can't find a target schema.
The new message (and SQLSTATE) matches the corresponding error cases innamespace.c.This was thought to be a "can't happen" case when extension.c was written,so we didn't think hard about how to report it. But it definitely canhappen in 9.2 and later, since we no longer require search_path to containany valid schema names. It's probably also possible in 9.1 if search_pathcame from a noninteractive source. So, back-patch to all releasescontaining this code.Per report from Sean Chittenden, though this isn't exactly his patch.1 parent612ecf3 commit2ff74ef
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1391 | 1391 |
| |
1392 | 1392 |
| |
1393 | 1393 |
| |
1394 |
| - | |
1395 |
| - | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
1396 | 1398 |
| |
1397 | 1399 |
| |
1398 | 1400 |
| |
1399 |
| - | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
1400 | 1404 |
| |
1401 | 1405 |
| |
1402 | 1406 |
| |
|
0 commit comments
Comments
(0)