sepgsql: Move some code from hooks.c to label.c

Robert Haas <rhaas@postgresql.org>

Commit: d44a3fb55de06137e77b0105c89656a897e396e8
Author: Robert Haas <rhaas@postgresql.org>
Date: 2012-02-15T18:54:26Z
Releases: 9.2.0
sepgsql: Move some code from hooks.c to label.c

This is some preliminary refactoring related to a pending patch
to allow sepgsql-enable sessions to make dynamic label transitions.
But this commit doesn't involve any functional change: it just puts
some bits of code in more logical places.

KaiGai Kohei

Files

PathChange+/−
contrib/sepgsql/hooks.c modified +3 −190
contrib/sepgsql/label.c modified +196 −5
contrib/sepgsql/sepgsql.h modified +1 −1