mooli tayer has uploaded a new change for review. Change subject: Packaging: db-scripts: emove unused common stored procedure: isloggingenabled ......................................................................
Packaging: db-scripts: emove unused common stored procedure: isloggingenabled Change-Id: I9b990e6f1873aa0e8316cab3d9271ce091df1159 Signed-off-by: Mooli Tayer <[email protected]> --- M packaging/dbscripts/common_sp.sql 1 file changed, 0 insertions(+), 28 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/66/18166/1 diff --git a/packaging/dbscripts/common_sp.sql b/packaging/dbscripts/common_sp.sql index 3495052..dd5e46a 100644 --- a/packaging/dbscripts/common_sp.sql +++ b/packaging/dbscripts/common_sp.sql @@ -198,34 +198,6 @@ -- End of DB helper functions -------------------------------------------------- -CREATE OR REPLACE FUNCTION isloggingenabled(errorcode text) - RETURNS boolean AS -$BODY$ --- determine if logging errors is enabled. --- define in your postgresql.conf: --- custom_variable_classes = 'engine' --- set engine.logging = 'true'; --- or this could be in a config table - --- NOTE: We should look at checking error codes as not all are suitable for exceptions some are just notice or info -declare - result boolean := false; - prop text; -begin - -- check for log setting in postgresql.conf - select current_setting('engine.logging') into prop; - if prop = 'true' then -result = true; - end if; - return result; -exception - when others then -result = true; -- default to log if not specified -return result; -end; -$BODY$ - LANGUAGE 'plpgsql'; - CREATE OR REPLACE FUNCTION attach_user_to_su_role(v_permission_id uuid) RETURNS void AS $procedure$ -- To view, visit http://gerrit.ovirt.org/18166 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9b990e6f1873aa0e8316cab3d9271ce091df1159 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: mooli tayer <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
