Column data type "real" incorrectly translated to "double precision" for PostgreSQL, should be "real"

Description

The following column:

gets created by Liquibase in PostgreSQL 9.5 as double precision:

which will causes error when used: (this is just an example, though)

PostgreSQL manual (https://www.postgresql.org/docs/9.5/static/datatype-numeric.html) explicitly states that real is a 4 bytes variable precision with 6 decimal digits precision, i.e. same as float(24).

Related to:
Stackoverflow: http://stackoverflow.com/questions/16890723/list-all-liquibase-sql-types#comment63532747_28626825

Workaround: Use float(24)

Environment

Spring Boot 1.3.5, Hibernate 4, PostgreSQL 9.5

discovered while testing

Activity

Show:

Nathan Voxland August 3, 2016 at 6:43 PM

Fixed

Fixed

Details

Reporter

Fix versions

Affects versions

Priority

Created June 27, 2016 at 5:52 AM
Updated August 3, 2016 at 6:43 PM
Resolved August 3, 2016 at 6:43 PM