Commit ca83963
error safe for casting float8 to other types per pg_cast
select castsource::regtype, casttarget::regtype, castfunc,
castcontext,castmethod, pp.prosrc, pp.proname from pg_cast pc join pg_proc pp on
pp.oid = pc.castfunc and pc.castfunc > 0
and castsource::regtype = 'float8'::regtype
order by castsource::regtype;
castsource | casttarget | castfunc | castcontext | castmethod | prosrc | proname
------------------+------------+----------+-------------+------------+----------------+---------
double precision | bigint | 483 | a | f | dtoi8 | int8
double precision | smallint | 237 | a | f | dtoi2 | int2
double precision | integer | 317 | a | f | dtoi4 | int4
double precision | real | 312 | a | f | dtof | float4
double precision | numeric | 1743 | a | f | float8_numeric | numeric
(5 rows)
discussion: https://postgr.es/m/CADkLM=fv1JfY4Ufa-jcwwNbjQixNViskQ8jZu3Tz_p656i_4hQ@mail.gmail.com1 parent 50d4a4d commit ca83963
3 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | | - | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1203 | 1206 | | |
1204 | | - | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
1205 | 1210 | | |
1206 | 1211 | | |
1207 | 1212 | | |
| |||
1224 | 1229 | | |
1225 | 1230 | | |
1226 | 1231 | | |
1227 | | - | |
| 1232 | + | |
1228 | 1233 | | |
1229 | 1234 | | |
1230 | 1235 | | |
| |||
1249 | 1254 | | |
1250 | 1255 | | |
1251 | 1256 | | |
1252 | | - | |
| 1257 | + | |
1253 | 1258 | | |
1254 | 1259 | | |
1255 | 1260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
1310 | | - | |
| 1310 | + | |
1311 | 1311 | | |
1312 | 1312 | | |
1313 | 1313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4560 | 4560 | | |
4561 | 4561 | | |
4562 | 4562 | | |
4563 | | - | |
| 4563 | + | |
| 4564 | + | |
4564 | 4565 | | |
4565 | 4566 | | |
4566 | 4567 | | |
| |||
0 commit comments