⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postgresql.sql.extra

📁 新的radius程序
💻 EXTRA
字号:
/* * $Id: postgresql.sql.extra,v 1.1.2.1 2007/07/16 11:22:50 pnixon Exp $ * * Postgresql extra schema for FreeRADIUS * * Note: (pnixon: 2003-12-10) The following function should not be required * if you use the PG specific queries in raddb/postgresql.conf * * Common utility function for date calculations. This is used in our * alternative account stop query to calculate the start of a session. * * This function is Copyright 2001 by Mark Steele (msteele@inet-interactif.com) * * Please note that this requires the plpgsql to be available in your * radius database. If it is not available you can register it with * postgres by running this command: * *   createlang plpgsql <databasename> */CREATE FUNCTION DATE_SUB(date,int4,text) RETURNS DATE AS 'DECLARE        var1 date;        var2 text;BEGIN        var2 = $2 || '' '' || $3;        SELECT INTO var1                to_date($1 - var2::interval, ''YYYY-MM-DD'');RETURN var1;END;' LANGUAGE 'plpgsql';

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -