View Issue Details

IDProjectCategoryView StatusLast Update
0004583Talerexchangepublic2024-01-12 14:05
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PrioritynoneSeveritytweakReproducibilityN/A
Status closedResolutionnot fixable 
Platformi7OSDebian GNU/LinuxOS Versionsqueeze
Product Version0.0 
Target Version0.4Fixed in Version0.4 
Summary0004583: should use CREATE TYPE to define amount type in postgres backends
Descriptionhttps://www.postgresql.org/docs/current/static/sql-createtype.html
TagsNo tags attached.

Activities

Christian Grothoff

2017-04-02 01:05

manager   ~0012015

Should probably also do this for common types:

http://www.sqlines.com/postgresql/how-to/create_user_defined_type

Christian Grothoff

2017-07-14 19:31

manager   ~0012335

Close investigation shows that custom types cannot declare constraints (like not-null, length limits) so they are useless for keys/hashes.

Also, for the amount, we then cannot use libpq to easily extract the values without some atrocious "(amount).val AS amount_val" SQL which defeats the point of using the custom types in the first place for amounts.

TLTR: custom types cannot be used in a useful way for us.

Issue History

Date Modified Username Field Change
2016-06-19 23:54 Christian Grothoff New Issue
2016-06-19 23:54 Christian Grothoff Status new => assigned
2016-06-19 23:54 Christian Grothoff Assigned To => Sree Harsha Totakura
2016-06-19 23:54 Christian Grothoff Assigned To Sree Harsha Totakura =>
2016-06-19 23:54 Christian Grothoff Status assigned => confirmed
2017-03-18 23:35 Christian Grothoff Target Version => 0.7.1
2017-04-02 01:05 Christian Grothoff Note Added: 0012015
2017-04-09 00:08 Christian Grothoff Severity feature => tweak
2017-04-09 00:08 Christian Grothoff Assigned To => Christian Grothoff
2017-04-09 00:08 Christian Grothoff Status confirmed => assigned
2017-04-09 00:17 Christian Grothoff Target Version 0.7.1 => 0.6
2017-07-14 19:31 Christian Grothoff Status assigned => resolved
2017-07-14 19:31 Christian Grothoff Resolution open => not fixable
2017-07-14 19:31 Christian Grothoff Fixed in Version => 0.4
2017-07-14 19:31 Christian Grothoff Note Added: 0012335
2017-07-14 19:31 Christian Grothoff Target Version 0.6 => 0.4
2017-10-18 15:42 Christian Grothoff Status resolved => closed
2024-01-12 14:05 Christian Grothoff Category exchange Postgres DB backend => exchange