diff options
author | Bruce Momjian <bruce@momjian.us> | 2012-12-20 13:56:24 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2012-12-20 13:56:31 -0500 |
commit | dc9896a2457f0d72458f1ff45935362521f0f99c (patch) | |
tree | f164a0b8469a13d1fce221f42263fa826514df7f /src/backend/commands/dbcommands.c | |
parent | af275a12dfeecd621ed9899a9382f26a68310263 (diff) | |
download | postgresql-dc9896a2457f0d72458f1ff45935362521f0f99c.tar.gz postgresql-dc9896a2457f0d72458f1ff45935362521f0f99c.zip |
Avoid using NAMEDATALEN in pg_upgrade
Because the client encoding might not match the server encoding,
pg_upgrade can't allocate NAMEDATALEN bytes for storage of database,
relation, and namespace identifiers. Instead pg_strdup() the memory and
free it.
Also add C comment in initdb.c about safe NAMEDATALEN usage.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions