NAME pg_typemgr [Options] <dbname> <type> [|<type>[,<prefix>]]


Description

pg_typemgr trys to manage self designed types for postgreSQL.


Options

-h <host> | --host=<host>

set the hostname where the postmaster runs, default `localhost'.

-u <user> | --user=<user>

connect to database as <user>.

--pass=<password>

use <password> on connect.

-d | --delete

delete <type>, you have to backup the tables before.

-f <file> | --file=<file>

sql command file to redefine <type>.

-l <what> | --l<what>

list one of

proc

the procedures depend on type in pg_proc.

oper

the operators of type in pg_operators.

opclass

the defined opclasses in pg_opclass.

amop

the definitions in pg_amop.

amproc

the definitions in pg_amproc.

table

tables and indezies where <type> occours.

-p <prefix> | --prefix=<prefix>

prefix of functions which should include in the query, eg. <prefix>_cmp>, on default <prefix> == <type>

--lt=<ltfunction>

the function for the operator `<' default bool _lt(<type> *,<type> *)>.

--le=<lefunction>

the function for the operator `<='

--eq=<eqfunction>

the function for the operator `='

--ge=<gefunction>

the function for the operator `>='

--gt=<gtfunction>

the function for the operator `>'

--ne=<nefunction>

the function for the operator `!='

--cmp=<cmpfunction>

function which returns (-1,0,1) on (a<b,a==b,a>b) the compare function, default

int4 <prefix>_cmp(<type> *,<type> *)


Placeholders

<dbname>

the name of the database where pg_typemgr operates on.

<type>

the name of the data type.

<prefix>

the prefix of functions which should include in the query, default <type>.

<host>

the hostname of the postgreSQL server.


Bugs

this is the alpha version, need testing ;-)


Todo

correct update pg_amproc on insert of <type>.


See Also

psql
http://www.postgreSQL.org
http://www.uniserve.de my homepage


Copyright

(c) 1999-2002 Thomas Drillich <drillich@uniserve.de>


Disclaimer

Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.

IN NO EVENT SHALL THE AUTHOR OR HIS COMPANY BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

THE THE AUTHOR OR HIS COMPANY SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN ``AS IS'' BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.