Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
issn.sql
Package: postgresql-6.5.2.tar.gz [view]
Upload User: blenddy
Upload Date: 2007-01-07
Package Size: 6495k
Code Size: 2k
Category:
Database system
Development Platform:
Unix_Linux
- --
- -- PostgreSQL code for ISSNs.
- --
- -- $Id: issn.sql,v 1.1 1998/08/17 03:35:05 scrappy Exp $
- --
- load '/usr/local/pgsql/modules/issn.so';
- --
- -- Input and output functions and the type itself:
- --
- create function issn_in(opaque)
- returns opaque
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create function issn_out(opaque)
- returns opaque
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create type issn (
- internallength = 16,
- externallength = 9,
- input = issn_in,
- output = issn_out
- );
- --
- -- The various boolean tests:
- --
- create function issn_lt(issn, issn)
- returns bool
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create function issn_le(issn, issn)
- returns bool
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create function issn_eq(issn, issn)
- returns bool
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create function issn_ge(issn, issn)
- returns bool
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create function issn_gt(issn, issn)
- returns bool
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- create function issn_ne(issn, issn)
- returns bool
- as '/usr/local/pgsql/modules/issn.so'
- language 'c';
- --
- -- Now the operators. Note how some of the parameters to some
- -- of the 'create operator' commands are commented out. This
- -- is because they reference as yet undefined operators, and
- -- will be implicitly defined when those are, further down.
- --
- create operator < (
- leftarg = issn,
- rightarg = issn,
- -- negator = >=,
- procedure = issn_lt
- );
- create operator <= (
- leftarg = issn,
- rightarg = issn,
- -- negator = >,
- procedure = issn_le
- );
- create operator = (
- leftarg = issn,
- rightarg = issn,
- commutator = =,
- -- negator = <>,
- procedure = issn_eq
- );
- create operator >= (
- leftarg = issn,
- rightarg = issn,
- negator = <,
- procedure = issn_ge
- );
- create operator > (
- leftarg = issn,
- rightarg = issn,
- negator = <=,
- procedure = issn_gt
- );
- create operator <> (
- leftarg = issn,
- rightarg = issn,
- negator = =,
- procedure = issn_ne
- );
- --
- -- eof
- --