Skip to main content
Ben Brandt
Seasoned ⭐️⭐️⭐️
Seasoned ⭐️⭐️⭐️
Aug 29, 2022 7:13 PM UTC
Gathering Interest

Consistency of Field Names for PostreSQL Gateway and Direct Query

Related products:REST API

In PostgreSQL gateway the datapoints use the field name “time_stamp”.  In the PostgreSQL connection used by direct query the field is called “timestamp”.  As much as possible, can these field names across these providers be consistent with one another?

3 replies

Anita Hæhre
Expert ⭐️⭐️⭐️⭐️
Head of Community
Aug 30, 2022 8:30 AM UTC
New→Gathering Interest
Anita Hæhre
ipolomanyi
Practitioner ⭐️⭐️⭐️
Practitioner ⭐️⭐️⭐️
Sep 1, 2022 10:15 AM UTC

@Ben Brandt this is unfortunate that we have different names for the same thing, however I don’t think it’s feasible to do at this point as it would introduce a breaking change,
It should, however, be possible to alias the column in PostgreSQL gateway while selecting it?

Ben Brandt
Seasoned ⭐️⭐️⭐️
Seasoned ⭐️⭐️⭐️
Sep 1, 2022 2:55 PM UTC

Yes.  Maybe a simple set of views is all that is needed to standardize across PostgreSQL Gateway, Direct Query, and the SQL Transformation features.