Why should I use fileno(stderr) instead of STDERR_FILENO

2024-04-13 Thread Dima Rybakov (Tlt)
Dear pgsql hackers, I found a mixture of fileno(stderr) and STDERR_FILENO in PostgreSQL source code which in most cases mean the same. But I have found recently that Microsoft's fileno() _fileno() can return -2 sometimes. After some experiments I found that applications running as windows service

how to read table options during smgropen()

2024-02-22 Thread Dima Rybakov (Tlt)
Dear pgsql hackers, I am developing custom storage for pgsql tables. I am using md* functions and smgrsw[] structure to switch between different magnetic disk access methods. I want to add some custom options while table created psql# create table t(...) with (my_option='value'); And thus I