- Notifications
You must be signed in to change notification settings - Fork5
Commit7f3014d
committed
Change plpgsql's cast cache to consider source typmod as significant.
I had thought that there was no need to maintain separate cache entriesfor different source typmods, but further experimentation shows that thereis an advantage to doing so in some cases. In particular, if a domain hasa typmod (say, "CREATE DOMAIN d AS numeric(20,0)"), failing to notice thesource typmod leads to applying a length-coercion step even when thesource has the correct typmod.1 parent45f2c2f commit7f3014d
1 file changed
+8
-4
lines changedLines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
60 | 61 |
| |
61 | 62 |
| |
62 | 63 |
| |
| |||
231 | 232 |
| |
232 | 233 |
| |
233 | 234 |
| |
234 |
| - | |
| 235 | + | |
235 | 236 |
| |
236 | 237 |
| |
237 | 238 |
| |
| |||
5733 | 5734 |
| |
5734 | 5735 |
| |
5735 | 5736 |
| |
5736 |
| - | |
| 5737 | + | |
| 5738 | + | |
| 5739 | + | |
5737 | 5740 |
| |
5738 | 5741 |
| |
5739 | 5742 |
| |
| |||
5769 | 5772 |
| |
5770 | 5773 |
| |
5771 | 5774 |
| |
5772 |
| - | |
| 5775 | + | |
5773 | 5776 |
| |
5774 | 5777 |
| |
5775 | 5778 |
| |
| |||
5799 | 5802 |
| |
5800 | 5803 |
| |
5801 | 5804 |
| |
| 5805 | + | |
5802 | 5806 |
| |
5803 | 5807 |
| |
5804 | 5808 |
| |
| |||
5815 | 5819 |
| |
5816 | 5820 |
| |
5817 | 5821 |
| |
5818 |
| - | |
| 5822 | + | |
5819 | 5823 |
| |
5820 | 5824 |
| |
5821 | 5825 |
| |
|
0 commit comments
Comments
(0)