The function path_encode() in geo_ops.c takes an argument "bool closed", to indicate an open or closed path --- but you can also pass -1 to indicate "neither". I propose to change this to an enum to make the code clearer and less weird.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных