forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit05cd91a
committed
typeTypeName() must return a pstrdup'd copy of the type name, not a
direct pointer into the syscache entry for the type. In some casesthe syscache entry might get flushed before we are done using thereturned type name. This bug accounts for difficult-to-repeatfailures seen when INSERTs into columns of certain data types arerun in parallel with VACUUMs of system tables. There may be relatedproblems elsewhere --- we need to take a harder look at uses ofsyscache data.1 parent4032a51 commit05cd91a
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
| 52 | + | |
52 | 53 |
| |
53 | 54 |
| |
54 | 55 |
| |
| |||
119 | 120 |
| |
120 | 121 |
| |
121 | 122 |
| |
122 |
| - | |
| 123 | + | |
| 124 | + | |
123 | 125 |
| |
124 | 126 |
| |
125 | 127 |
| |
|
0 commit comments
Comments
(0)