[ADMIN] Database Access Limitation (cann't use IDENT).

2002-07-04 Thread Oon Arfiandwi Martyono
Hello all, sorry about my english. I use PostgreSQL-7.2.1 on Linux. I have a problem to limit Database Access. I want user X use (ONLY) database Y and user A use (ONLY) database B, and so on. Is there another way except use pg_ident.conf ? because i want more restrictly from pg_ident.co

[ADMIN] ecpg problem : pre-processor translated hex constant to char

2002-07-04 Thread Raymond Fung
Dear all, A simple testing program : * * * * * * * * * * * * * * begin * * * * * * * * * * * * * * * * #include #include int main (void) { unsigned int v; v = 0x87654321L; return (0); } * * * * * * * * * * * * * * end * * * * * * * * * * * * * * * * compile with ecpg using :

[ADMIN] starting the databaseserver

2002-07-04 Thread Wolfgang Meiners
Hi there, i have a realy silly question: I installed postgressql (v 7.2) from suse linux 8.0 and then i wanted to try the first steps with it. As i understood, i shoud login as user postgres an then start the server by some commands, wich are described in the documents. It seems, the user pos

Re: [ADMIN] starting the databaseserver

2002-07-04 Thread Gareth Kirwan
This is more, to my mind, a linux question. But all the same: su - # su to root su - postgres # once root you can su to postgres without password prompt - and hence ( hopefully ) avoid your problem then you can run the program - hopefully. Gareth -Original Message- From: [EMAIL PROTE

Re: [ADMIN] starting the databaseserver

2002-07-04 Thread Florian Helmberger
Hi Wolfgang, > It seems, the user postgres (group daemons) has been added by the > installation-procedure -at least not by me. Nevertheless, when i > try to login > to this user, it fails because i do not have a password! So i can > not take > the very fist step! > > So my question simply is: How

[ADMIN] Which DB is using space.

2002-07-04 Thread Gary Stainburn
Hi all, Below is the output from 'du -kx /|sort -rn|head'. It's showing that /var/lib/pgsql/data/base/46169 is using a big chunk of my disk. How can I tell which DB this is? What suggestions can people make to reduce the amount of disk space used by this DB? __BEGIN__ 361365 / 282030 /v

[ADMIN] Union strange explain

2002-07-04 Thread Gaetano Mendola
Hi all, I have a view in this form: CREATE VIEW my_view AS < QUERY-A> UNION ALL Now if I do: # explain WHERE login = 'asdadad'; NOTICE: QUERY PLAN: Nested Loop (cost=0.00..7.08 rows=1 width=88) -> Nested Loop (cost=0.00..5.05 rows=1 width=52) -> Index Scan using user_login_lo

Re: [ADMIN] Which DB is using space.

2002-07-04 Thread Bruce Momjian
Gary Stainburn wrote: > Hi all, > > Below is the output from 'du -kx /|sort -rn|head'. It's showing that > /var/lib/pgsql/data/base/46169 is using a big chunk of my disk. > > How can I tell which DB this is? > What suggestions can people make to reduce the amount of disk space used by

Re: [ADMIN] Authentication in batch processing

2002-07-04 Thread Bruce Momjian
Alfred Anzlovar wrote: > Maybe this could/can be done differently, but as it was, it was so easy > and nice. And if there are more of us, poor souls, with comparable > problems maybe an option called '--pwd-from-stdin-only' would be a > solution. Another option (thanks God for Open Source proje

Re: [ADMIN] Authentication in batch processing

2002-07-04 Thread Bruce Momjian
Alfred Anzlovar wrote: > On Thu, 4 Jul 2002, Bruce Momjian wrote: > > > How about PGUSER/PGPASSWORD? That will work. This is assuming you > > don't have an OS (BSD?) that displays environment variables for a > > process. > > No BSD, Linux. And it works. Thanks. > > Well, I must admit we had s

Re: [ADMIN] Union strange explain

2002-07-04 Thread Stephan Szabo
On Thu, 4 Jul 2002, Gaetano Mendola wrote: > Hi all, > > I have a view in this form: > > CREATE VIEW my_view AS > < QUERY-A> > UNION ALL > > > Now if I do: > > # explain WHERE login = 'asdadad'; > NOTICE: QUERY PLAN: > > Nested Loop (cost=0.00..7.08 rows=1 width=88) > -> Nested Loop (cost

[ADMIN] Performance impact of record sizes

2002-07-04 Thread John Moore
We have a need to store text data which typically is just a hundred or so bytes, but in some cases may extend to a few thousand. Our current field has a varchar of 1024, which is not large enough. Key data is fixed sized and much smaller in this same record. Our application is primarily transa

[ADMIN] views: performance implication

2002-07-04 Thread John Moore
We hope to use views as a way to give customers odbc based ad-hoc query access to our database while enforcing security. The reason is that we do not want to put data into separate tables by customer, but rather use a customer ID as part of any query criteria on any table. So the question is:

Re: [ADMIN] Performance impact of record sizes

2002-07-04 Thread Bruce Momjian
John Moore wrote: > We have a need to store text data which typically is just a hundred or so > bytes, but in some cases may extend to a few thousand. Our current field > has a varchar of 1024, which is not large enough. Key data is fixed sized > and much smaller in this same record. > > Our a

Re: [ADMIN] views: performance implication

2002-07-04 Thread Bruce Momjian
John Moore wrote: > We hope to use views as a way to give customers odbc based ad-hoc query > access to our database while enforcing security. The reason is that we do > not want to put data into separate tables by customer, but rather use a > customer ID as part of any query criteria on any ta

Re: [ADMIN] Performance impact of record sizes

2002-07-04 Thread John Moore
>If you don't want a limit, use TEXT. Long values are automatically >stored in TOAST tables to avoid performance problems with sequential >scans over long row values. Thanks... I wasn't quite clear enough in my question I am focused on OLTP performance, and in my case the vast majority o