To begin with, the official document says the following:
To address these difficulties, we recommend using date/time types that contain both date and time when using time zones. We do not recommend using the type time with time zone (though it is supported by PostgreSQL for legacy applications and for compliance with the SQL standard). PostgreSQL assumes your local time zone for any type containing only date or time.
And on display of time stamp data, it says:
All timezone-aware dates and times are stored internally in UTC. They are converted to local time in the zone specified by the TimeZone configuration parameter before being displayed to the client.
Therefore, I have defined columns as timestamp data type and inserting into the table as "2018-05-24 09:30:00+05:30". Based on the points mentioned above, I was hoping to see time stamp (in SELECT query output) in UTC i.e. 2018-05-24 04:00:00 because TIME ZONE was set to UTC. And, when I change the parameter as
SET TIME ZONE INTERVAL '+05:30' HOUR TO MINUTE;
I was hoping to see 2018-05-24 09:30:00. But, regardless of the time zone parameter, I see query output as 2018-05-24 09:30:00. How does this observation tally with the documentation?
The insert to the database was done with Javascript whereas other operations were done with psql.