forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitda3751c
committed
Be more noisy about "wrong number of nailed relations" initfile problems.
In commit5d1ff6b I added some logic torelcache.c to try to ensure that the regression tests would fail if wemade a mistake about which relations belong in the relcache init files.I'm quite sure I tested that, but I must have done so only for thenon-shared-catalog case, because a report from Adam Brightwell showed thatthe regression tests still pass just fine if we bollix the shared-cataloginit file in the way this code was supposed to catch. The reason is thatthat file gets loaded before we do client authentication, so the WARNINGis not sent to the client, only to the postmaster log, where it's far tooeasily missed.The least Rube Goldbergian answer to this is to put an Assert(false)after the elog(WARNING). That will certainly get developers' attention,while not breaking production builds' ability to recover from cornercases with similar symptoms.Since this is only of interest to developers, there seems no need fora back-patch, even though the previous commit went into all branches.1 parent80558c1 commitda3751c
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4910 | 4910 |
| |
4911 | 4911 |
| |
4912 | 4912 |
| |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
4913 | 4919 |
| |
4914 | 4920 |
| |
4915 | 4921 |
| |
| |||
4919 | 4925 |
| |
4920 | 4926 |
| |
4921 | 4927 |
| |
| 4928 | + | |
| 4929 | + | |
| 4930 | + | |
4922 | 4931 |
| |
4923 | 4932 |
| |
4924 | 4933 |
| |
| |||
4930 | 4939 |
| |
4931 | 4940 |
| |
4932 | 4941 |
| |
| 4942 | + | |
4933 | 4943 |
| |
4934 | 4944 |
| |
4935 | 4945 |
| |
|
0 commit comments
Comments
(0)