• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Dec-2021-

COPYINGH A D16-Dec-202117.6 KiB340281

ChangeLogH A D16-Dec-202111.8 KiB386225

EOAttribute+PostgreSQL72.hH A D16-Dec-20211.5 KiB4713

EOAttribute+PostgreSQL72.mH A D16-Dec-20217 KiB228209

EOKeyGlobalID+PGVal.mH A D16-Dec-20211.5 KiB4634

GNUmakefileH A D16-Dec-20211.9 KiB7334

GNUmakefile.preambleH A D16-Dec-20212.3 KiB9169

NSCalendarDate+PGVal.mH A D16-Dec-20216.3 KiB220186

NSData+PGVal.mH A D16-Dec-20213.6 KiB123102

NSNull+PGVal.mH A D16-Dec-20211.2 KiB3827

NSNumber+ExprValue.mH A D16-Dec-20211.5 KiB5034

NSNumber+PGVal.mH A D16-Dec-20215 KiB181153

NSString+PGVal.mH A D16-Dec-20214 KiB142118

NSString+PostgreSQL72.hH A D16-Dec-20211.3 KiB4110

NSString+PostgreSQL72.mH A D16-Dec-20214.4 KiB174133

PGConnection.hH A D16-Dec-20213.1 KiB13056

PGConnection.mH A D16-Dec-20215.6 KiB223169

PGResultSet.mH A D16-Dec-20213.5 KiB149116

PostgreSQL-Info.plistH A D16-Dec-2021578 1918

PostgreSQL72Adaptor.hH A D16-Dec-20212.2 KiB8926

PostgreSQL72Adaptor.mH A D16-Dec-20214.5 KiB181142

PostgreSQL72Channel+Model.hH A D16-Dec-20211.4 KiB4512

PostgreSQL72Channel+Model.mH A D16-Dec-202112.5 KiB367297

PostgreSQL72Channel.hH A D16-Dec-20212.3 KiB8540

PostgreSQL72Channel.mH A D16-Dec-202122.2 KiB789625

PostgreSQL72Context.hH A D16-Dec-20211.2 KiB409

PostgreSQL72Context.mH A D16-Dec-20212.7 KiB9973

PostgreSQL72DataTypeMappingException.mH A D16-Dec-20212.6 KiB7960

PostgreSQL72Exception.hH A D16-Dec-20211.4 KiB5521

PostgreSQL72Exception.mH A D16-Dec-20211.7 KiB6345

PostgreSQL72Expression.hH A D16-Dec-20211.5 KiB5620

PostgreSQL72Expression.mH A D16-Dec-20212.9 KiB10075

PostgreSQL72Values.hH A D16-Dec-20212.4 KiB8737

READMEH A D16-Dec-20211.5 KiB7252

TODOH A D16-Dec-202178 43

VersionH A D16-Dec-202178 63

common.hH A D16-Dec-20211.3 KiB4211

condict.plistH A D16-Dec-2021142 87

fhs.makeH A D16-Dec-2021661 2617

gdltest.mH A D16-Dec-20215.1 KiB190148

pgconfig.hH A D16-Dec-20211.6 KiB5215

postgres_types.hH A D16-Dec-20211 KiB4745

test.eomodelH A D16-Dec-2021641 2624

types.psqlH A D16-Dec-2021276 1411

README

1PostgreSQL Adaptor
2==================
3
4Install PostgreSQL:
5
6  cd /INTERNET/suse72/dvd/
7  cd ap3
8  rpm -Uvh postgresql.rpm
9  cd ap2
10  rpm -Uvh postgresql-lib.rpm
11  rpm -Uvh postgresql-server.rpm
12  rpm -Uvh postgresql-devel.rpm
13
14Configure PostgreSQL:
15
16  su - postgres
17  vi .bashrc
18    -> export PGDATA=/var/lib/pgsql/data
19  source .bashrc
20  initdb
21
22  su - root
23  /etc/rc.d/postgresql start
24
25  su - postgres
26  createdb   OpenGroupware
27  createuser ogo
28
29  vi data/pg_hba.conf
30  > add line: "host  all  192.168.0.1   255.255.255.0       trust"
31
32PostgreSQL starten:
33  /etc/rc.d/postgresql restart
34
35Configure the Adaptor
36  PGDebugEnabled
37
38
39NOTES
40=====
41
42Querying the tables of a database
43---------------------------------
44
45SELECT  relname
46  FROM pg_class
47  WHERE ( relkind = 'r') AND relname !~ '^pg_'
48        AND relname !~ '^xinv[0-9]+'
49  ORDER BY relname;
50
51und die infos dazu mit:
52
53SELECT a.attnum, a.attname, t.typname, a.attlen, a.attnotnull
54  FROM pg_class c, pg_attribute a, pg_type t
55  WHERE c.relname = 'TABELLENNAME_HERE' AND
56        a.attnum > 0 AND a.attrelid = c.oid
57        AND a.atttypid = t.oid
58  ORDER BY attnum;
59
60Quering the databases of a server
61---------------------------------
62
63  SELECT * FROM pg_database
64
65You need a database to connect PostgreSQL using libpq, but 'template1' should
66always be available.
67
68Fetch DB-names and their DBA:
69  SELECT DISTINCT dbs.datname, users.usename
70  FROM pg_database dbs, pg_user users
71  WHERE dbs.datdba=users.usesysid
72