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