[linux-l] PostgeSQL
Olaf "Rübezahl" Radicke
olaf_rad at gmx.de
Sa Nov 8 10:56:13 CET 2003
Am Fre, 2003-11-07 um 21.59 schrieb Jan-Benedict Glaw:
> On Fri, 2003-11-07 21:28:11 +0100, Olaf "Rübezahl" Radicke <olaf_rad at gmx.de>
> wrote in message <1068236720.2398.43.camel at n_platte>:
> > 1.) Wo steht die Konfigurationsdatei? In /etc ist
> > nichts zu finden was auch nur annähern da nach aus
> > sieht.
>
> /etc/postgresql/* - zumindest bei Debian.
Gibt's nicht:
bash-2.05b$ ls /etc/p*
/etc/paper.config /etc/pbm2ppa.conf /etc/printcap
/etc/protocols
/etc/passwd /etc/pentaxpj.conf /etc/profile /etc/ptmp
/etc/passwd- /etc/pluggerrc /etc/proftpd.conf
/etc/pwdb.conf
/etc/passwd.bak /etc/pnm2ppa.conf /etc/proftpd.conf~
/etc/pam.d:
[...]
/etc/pango:
pango.modules pangox.aliases
/etc/pgsql:
odbcinst.ini
...und in der steht fast nix dirnnen.
>
> > 2.) Wieso kann jeder User (bei Mandrake 9.2) den
> > DB-Server starten und stoppen? Ich hätte erwartet
>
> Hö? Kannst Du diese kühne Behauptung beweisen?
bash-2.05b$ pg_ctl -D ./db_data -l ./tmp/logfile -o "-i" start
postmaster successfully started
bash-2.05b$ groups
freepriority
bash-2.05b$ id
uid=504(olaf) gid=1001(freepriority) Gruppen=1001(freepriority)
(An dem $ erkennst du das es nicht root ist.)
Danach spasseshalber mit root....
[root at n_platte olaf]# pg_ctl -D ./db_data -l ./tmp/logfile -o "-i"
start
pg_ctl: Another postmaster may be running. Trying to start postmaster
anyway.
pg_ctl: cannot start postmaster
Examine the log output.
> Dieses ist auf einer *produktiven* Debian-Kiste:
>
> jbglaw at mail:~$ id
> uid=1001(jbglaw) gid=1001(jbglaw) groups=1001(jbglaw),4(adm),40(src),1019(skolelinux)
> jbglaw at mail:~$ ps axf | grep postgr | grep -v grep
> 26052 ? S 0:02 /usr/lib/postgresql/bin/postmaster
> 26054 ? S 0:00 \_ postgres: stats buffer process
> 26055 ? S 0:00 | \_ postgres: stats collector process
> 20413 ? S 0:00 \_ postgres: lugowl lugowl [local] idle
> 21313 ? S 0:00 \_ postgres: lugowl lugowl [local] idle
> 21866 ? S 0:00 \_ postgres: lugowl lugowl [local] idle
> 22149 ? S 0:00 \_ postgres: lugowl lugowl [local] idle
bash-2.05b$ ps axf | grep postgr | grep -v grep
2476 pts/0 S 0:00 \_ postgres: stats buffer process
2477 pts/0 S 0:00 \_ postgres: stats collector process
und noch mal top:
85 processes: 84 sleeping, 1 running, 0 zombie, 0 stopped
[...]
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
2611 olaf 16 0 1048 1048 820 R 0,3 0,4 0:00 top
2279 olaf 8 0 1196 1196 916 S 0,0 0,4 0:00 sh
2332 olaf 9 0 784 784 612 S 0,0 0,3 0:00 ssh-agent
2333 olaf 9 0 2644 2644 1980 S 0,0 1,0 0:00 icewm
2334 olaf 9 0 10608 10M 9420 S 0,0 4,1 0:00 kppp
[...]
2463 olaf 9 0 1644 1644 1148 S 0,0 0,6 0:00 bash
2475 olaf 8 0 1408 1408 1340 S 0,0 0,5 0:00 postmaster
2476 olaf 9 0 1392 1392 1340 S 0,0 0,5 0:00 postmaster
2477 olaf 9 0 1416 1416 1336 S 0,0 0,5 0:00 postmaster
noch mal pstree:
bash-2.05b$ pstree
init-+-apmd
|-atd
|-bdflush
|-bonobo-moniker-
|-crond
|-cupsd
|-devfsd
|-evolution-addre
|-evolution-alarm
|-evolution-calen
|-evolution-execu
|-evolution-mail---evolution-mail---4*[evolution-mail]
[...]
|-oafd
|-pagebuf_daemon
|-portmap
|-postmaster---postmaster---postmaster
> jbglaw at mail:~$ kill 26052
> bash: kill: (26052) - Operation not permitted
> jbglaw at mail:~$
bash-2.05b$ kill 2475
bash-2.05b$
Er hat nichts zu meckern. Da das bei Mandrake 9.0 genauso
wie bei 9.2 war dachte ich, das müsse so sein. Bzw. ich
hätte was falsch gemacht.
MfG
Rübezahl
--
===================================================
"Meine Meinung steht fest. Bitte verwirren sie mich
nicht mit Tatsachen!"
Unbekannt.
===================================================
Mehr Informationen über die Mailingliste linux-l