You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tom Lane
7ca37fb040
Use setenv() in preference to putenv().
...
Since at least 2001 we've used putenv() and avoided setenv(), on the
grounds that the latter was unportable and not in POSIX. However,
POSIX added it that same year, and by now the situation has reversed:
setenv() is probably more portable than putenv(), since POSIX now
treats the latter as not being a core function. And setenv() has
cleaner semantics too. So, let's reverse that old policy.
This commit adds a simple src/port/ implementation of setenv() for
any stragglers (we have one in the buildfarm, but I'd not be surprised
if that code is never used in the field). More importantly, extend
win32env.c to also support setenv(). Then, replace usages of putenv()
with setenv(), and get rid of some ad-hoc implementations of setenv()
wannabees.
Also, adjust our src/port/ implementation of unsetenv() to follow the
POSIX spec that it returns an error indicator, rather than returning
void as per the ancient BSD convention. I don't feel a need to make
all the call sites check for errors, but the portability stub ought
to match real-world practice.
Discussion: https://postgr.es/m/2065122.1609212051@sss.pgh.pa.us
5 years ago
..
access
Multirange datatypes
5 years ago
bootstrap
Update copyrights for 2020
6 years ago
catalog
Add support of multirange matching to the existing range GiST indexes
5 years ago
commands
Sanitize IF NOT EXISTS in EXPLAIN for CTAS and matviews
5 years ago
common
Revert "Add key management system" ( 978f869b99) & later commits
5 years ago
datatype
Update copyrights for 2020
6 years ago
executor
Support subscripting of arbitrary types, not only arrays.
5 years ago
fe_utils
Move connect.h from fe_utils to src/include/common.
5 years ago
foreign
Update copyrights for 2020
6 years ago
jit
jit: Reference function pointer types via llvmjit_types.c.
5 years ago
lib
Correct comment in simplehash.h.
6 years ago
libpq
Fix assorted issues in backend's GSSAPI encryption support.
5 years ago
mb
Allow Unicode escapes in any server encoding, not only UTF-8.
6 years ago
nodes
Support subscripting of arbitrary types, not only arrays.
5 years ago
optimizer
Disallow SRFs when considering sorts below Gather Merge
5 years ago
parser
Support subscripting of arbitrary types, not only arrays.
5 years ago
partitioning
Improve error cursor positions for problems with partition bounds.
5 years ago
port
Use setenv() in preference to putenv().
5 years ago
portability
Update copyrights for 2020
6 years ago
postmaster
Revert "Add key management system" ( 978f869b99) & later commits
5 years ago
regex
Assume that we have <wchar.h>.
6 years ago
replication
Extend the output plugin API to allow decoding of prepared xacts.
5 years ago
rewrite
Calculate extraUpdatedCols in query rewriter, not parser.
5 years ago
snowball
Update snowball
6 years ago
statistics
Improve estimation of OR clauses using extended statistics.
5 years ago
storage
Improve client error messages for immediate-stop situations.
5 years ago
tcop
Fix bogus completion tag usage in walsender
5 years ago
tsearch
Improve behavior of tsearch_readline(), and remove t_readline().
5 years ago
utils
Suppress log spam from multiple reports of SIGQUIT shutdown.
5 years ago
.gitignore
…
Makefile
…
c.h
Support subscripting of arbitrary types, not only arrays.
5 years ago
fmgr.h
Use PG_GETARG_TRANSACTIONID where appropriate
5 years ago
funcapi.h
Support for OUT parameters in procedures
5 years ago
getaddrinfo.h
Update copyrights for 2020
6 years ago
getopt_long.h
Update copyrights for 2020
6 years ago
miscadmin.h
Add hash_mem_multiplier GUC.
6 years ago
pg_config.h.in
Use setenv() in preference to putenv().
5 years ago
pg_config_ext.h.in
…
pg_config_manual.h
Add nbtree Valgrind buffer lock checks.
6 years ago
pg_getopt.h
Update copyrights for 2020
6 years ago
pg_trace.h
Update copyrights for 2020
6 years ago
pgstat.h
Revert "Add key management system" ( 978f869b99) & later commits
5 years ago
pgtar.h
Assorted cleanup of tar-related code.
6 years ago
pgtime.h
Update copyrights for 2020
6 years ago
port.h
Use setenv() in preference to putenv().
5 years ago
postgres.h
Update copyrights for 2020
6 years ago
postgres_ext.h
…
postgres_fe.h
Update copyrights for 2020
6 years ago
rusagestub.h
Update copyrights for 2020
6 years ago
windowapi.h
Update copyrights for 2020
6 years ago