pgsql: Further stabilize output from rolenames regression test.

2020-09-26 Thread Tom Lane
Further stabilize output from rolenames regression test. Commit e5209bf37 didn't quite get the job done, as I failed to notice that chksetconfig() also needed to have its ORDER BY extended. Per buildfarm member dory. Report: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=dory&dt=2020-0

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin

pgsql: Revise RelationBuildRowSecurity() to avoid memory leaks.

2020-09-26 Thread Tom Lane
Revise RelationBuildRowSecurity() to avoid memory leaks. This function leaked some memory while loading qual clauses for an RLS policy. While ordinarily negligible, that could build up in some repeated-reload cases, as reported by Konstantin Knizhnik. We can improve matters by borrowing the codin