- Notifications
You must be signed in to change notification settings - Fork28
Commit3f936aa
committed
Add a "LIKE = typename" clause to CREATE TYPE for base types. This allows
the basic representational details (typlen, typalign, typbyval, typstorage)to be copied from an existing type rather than listed explicitly in theCREATE TYPE command. The immediate reason for this is to provide a simplesolution for add-on modules that want to define types represented as int8,float4, or float8: as of 8.4 the appropriate PASSEDBYVALUE setting isplatform-specific and so it's hard for a SQL script to know what to do.This patch fixes the contrib/isn breakage reported by Rushabh Lathia.1 parent0ddede5 commit3f936aa
File tree
3 files changed
+208
-111
lines changed- contrib/isn
- doc/src/sgml/ref
- src/backend/commands
3 files changed
+208
-111
lines changedLines changed: 9 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
| 31 | + | |
34 | 32 |
| |
35 | 33 |
| |
36 | 34 |
| |
| |||
48 | 46 |
| |
49 | 47 |
| |
50 | 48 |
| |
51 |
| - | |
52 |
| - | |
53 |
| - | |
| 49 | + | |
54 | 50 |
| |
55 | 51 |
| |
56 | 52 |
| |
| |||
68 | 64 |
| |
69 | 65 |
| |
70 | 66 |
| |
71 |
| - | |
72 |
| - | |
73 |
| - | |
| 67 | + | |
74 | 68 |
| |
75 | 69 |
| |
76 | 70 |
| |
| |||
88 | 82 |
| |
89 | 83 |
| |
90 | 84 |
| |
91 |
| - | |
92 |
| - | |
93 |
| - | |
| 85 | + | |
94 | 86 |
| |
95 | 87 |
| |
96 | 88 |
| |
| |||
110 | 102 |
| |
111 | 103 |
| |
112 | 104 |
| |
113 |
| - | |
114 |
| - | |
115 |
| - | |
| 105 | + | |
116 | 106 |
| |
117 | 107 |
| |
118 | 108 |
| |
| |||
130 | 120 |
| |
131 | 121 |
| |
132 | 122 |
| |
133 |
| - | |
134 |
| - | |
135 |
| - | |
| 123 | + | |
136 | 124 |
| |
137 | 125 |
| |
138 | 126 |
| |
| |||
150 | 138 |
| |
151 | 139 |
| |
152 | 140 |
| |
153 |
| - | |
154 |
| - | |
155 |
| - | |
| 141 | + | |
156 | 142 |
| |
157 | 143 |
| |
158 | 144 |
| |
| |||
170 | 156 |
| |
171 | 157 |
| |
172 | 158 |
| |
173 |
| - | |
174 |
| - | |
175 |
| - | |
| 159 | + | |
176 | 160 |
| |
177 | 161 |
| |
178 | 162 |
| |
|
Lines changed: 33 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
290 | 291 |
| |
291 | 292 |
| |
292 | 293 |
| |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
293 | 309 |
| |
294 | 310 |
| |
295 | 311 |
| |
| |||
524 | 540 |
| |
525 | 541 |
| |
526 | 542 |
| |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
527 | 559 |
| |
528 | 560 |
| |
529 | 561 |
| |
|
0 commit comments
Comments
(0)