pgsql: Dump labels in reproducible order
pgsql: Dump labels in reproducible order
От:
Peter Eisentraut <peter@eisentraut.org>
Дата:
Dump labels in reproducible order In pg_get_propgraphdef(), sort the labels before writing out, for a consistent dump order. Also, since we now have a list, we can get rid of the separate table scan to get the count. Co-authored-by: Peter Eisentraut Co-authored-by: Ashutosh Bapat Co-authored-by: Andrew Dunstan Reviewed-by: Junwang Zhao Reviewed-by: Kirill Reshke Discussion: https://www.postgresql.org/message-id/flat/a855795d-e697-4fa5-8698-d20122126567@eisentraut.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c9babbc8816a4f5d5894eda555e39ba30781322f Modified Files -------------- src/backend/utils/adt/ruleutils.c | 59 +++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 15 deletions(-)