forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3753e27
committed
Doc: caution against misuse of 'now' and related datetime literals.
Section 8.5.1.4, which defines these literals, made only a vaguereference to the fact that they might be evaluated too soon to besafe in non-interactive contexts. Provide a more explicit cautionagainst misuse. Also, generalize the wording in the related tip insection 9.9.4: while it clearly described this problem, it implied(or really, stated outright) that the problem only applies to tableDEFAULT clauses.Per gripe from Tijs van Dam. Back-patch to all supported branches.Discussion:https://postgr.es/m/c2LuRv9BiRT3bqIo5mMQiVraEXey_25B4vUn0kDqVqilwOEu_iVF1tbtvLnyQK7yDG3PFaz_GxLLPil2SDkj1MCObNRVaac-7j1dVdFERk8=@thalex.com1 parentb39c940 commit3753e27
2 files changed
+22
-6
lines changedLines changed: 17 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2114 | 2114 |
| |
2115 | 2115 |
| |
2116 | 2116 |
| |
2117 |
| - | |
| 2117 | + | |
2118 | 2118 |
| |
2119 | 2119 |
| |
2120 | 2120 |
| |
| |||
2202 | 2202 |
| |
2203 | 2203 |
| |
2204 | 2204 |
| |
2205 |
| - | |
2206 |
| - | |
| 2205 | + | |
2207 | 2206 |
| |
2208 | 2207 |
| |
2209 | 2208 |
| |
2210 | 2209 |
| |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
2211 | 2225 |
| |
2212 | 2226 |
| |
2213 | 2227 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8727 | 8727 |
| |
8728 | 8728 |
| |
8729 | 8729 |
| |
8730 |
| - | |
| 8730 | + | |
8731 | 8731 |
| |
8732 | 8732 |
| |
8733 | 8733 |
| |
8734 | 8734 |
| |
8735 | 8735 |
| |
8736 |
| - | |
8737 |
| - | |
| 8736 | + | |
| 8737 | + | |
| 8738 | + | |
8738 | 8739 |
| |
8739 | 8740 |
| |
8740 | 8741 |
| |
8741 | 8742 |
| |
8742 | 8743 |
| |
8743 | 8744 |
| |
| 8745 | + | |
8744 | 8746 |
| |
8745 | 8747 |
| |
8746 | 8748 |
| |
|
0 commit comments
Comments
(0)