forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5408498
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 parentc4a803a commit5408498
2 files changed
+22
-6
lines changedLines changed: 17 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2197 | 2197 |
| |
2198 | 2198 |
| |
2199 | 2199 |
| |
2200 |
| - | |
| 2200 | + | |
2201 | 2201 |
| |
2202 | 2202 |
| |
2203 | 2203 |
| |
| |||
2285 | 2285 |
| |
2286 | 2286 |
| |
2287 | 2287 |
| |
2288 |
| - | |
2289 |
| - | |
| 2288 | + | |
2290 | 2289 |
| |
2291 | 2290 |
| |
2292 | 2291 |
| |
2293 | 2292 |
| |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
2294 | 2308 |
| |
2295 | 2309 |
| |
2296 | 2310 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10044 | 10044 |
| |
10045 | 10045 |
| |
10046 | 10046 |
| |
10047 |
| - | |
| 10047 | + | |
10048 | 10048 |
| |
10049 | 10049 |
| |
10050 | 10050 |
| |
10051 | 10051 |
| |
10052 | 10052 |
| |
10053 |
| - | |
10054 |
| - | |
| 10053 | + | |
| 10054 | + | |
| 10055 | + | |
10055 | 10056 |
| |
10056 | 10057 |
| |
10057 | 10058 |
| |
10058 | 10059 |
| |
10059 | 10060 |
| |
10060 | 10061 |
| |
| 10062 | + | |
10061 | 10063 |
| |
10062 | 10064 |
| |
10063 | 10065 |
| |
|
0 commit comments
Comments
(0)