select_common_typmod - Mailing list pgsql-hackers

From Peter Eisentraut
Subject select_common_typmod
Date
Msg-id 97df3af9-8b5e-fb7f-a029-3eb7e80d7af9@2ndquadrant.com
Whole thread Raw
Responses Re: select_common_typmod  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
While working on another patch, I figured adding a 
select_common_typmod() to go along with select_common_type() and 
select_common_collation() would be handy.  Typmods were previously 
combined using hand-coded logic in several places, and not at all in 
other places.  The logic in select_common_typmod() isn't very exciting, 
but it makes the code more compact and readable in a few locations, and 
in the future we can perhaps do more complicated things if desired.

There might have been a tiny bug in transformValuesClause() because 
while consolidating the typmods it does not take into account whether 
the types are actually the same (as more correctly done in 
transformSetOperationTree() and buildMergedJoinVar()).

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment

pgsql-hackers by date:

Previous
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: Transactions involving multiple postgres foreign servers, take 2
Next
From: Simon Riggs
Date:
Subject: Re: Is Recovery actually paused?