Re: [ADMIN] [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Purusothaman A
Thanks Richard Huxton for your reply. I use client side api for uploading and downloading files. Its not happening immediately. But when database grows with data, file object got corrupted. My table structure is as follows. Table "public.conf" Column | Type | Modif

Re: [ADMIN] Can I restrict backups?

2007-05-23 Thread Andreas
Scott Marlowe schrieb: Andreas wrote: now this might be a bit of a silly question, but I'll give it a shot anyway. I'm working on a remote database for a few employees of a rather small startup company where at least a few will get teleworking jobs. They'll get a ms-access application that c

Re: [ADMIN] [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Richard Huxton
Purusothaman A wrote: Thanks Richard Huxton for your reply. I use client side api for uploading and downloading files. Its not happening immediately. But when database grows with data, file object got corrupted. Yes, but *HOW* - is it a different file, length is different, what? My table st

Re: [ADMIN] initializing the DB cluster

2007-05-23 Thread Vishal Arora
check that you don't have any of the previous version's binaries in your path From: "Islam Hegazy" <[EMAIL PROTECTED]> To: Subject: [ADMIN] initializing the DB cluster Date: Tue, 22 May 2007 23:45:18 -0600 Hi all I installed the source of PostgreSQL 8.2.3 on a linux machine. The

[ADMIN] how to view all database,tables,users

2007-05-23 Thread Mondi Ravi
i can't find out command to show all databases,tables,users and integrity constraints relationships; yours sincerely ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your jo

Re: [ADMIN] Can I restrict backups?

2007-05-23 Thread Andrew Sullivan
On Wed, May 23, 2007 at 10:44:36AM +0200, Andreas wrote: > The problem - not only - of my customer is that he primarily has to > trust strange people enough to grant them access to the very base of his > business and this base could be carried away on an USB stick or piped > out via email or wha

Re: [ADMIN] how to view all database,tables,users

2007-05-23 Thread Thomas Markus
use tables/views in scheme pg_catalog/information_schema try select * from pg_catalog.pg_database; select * from pg_catalog.pg_user; select * from pg_catalog.pg_tables; Mondi Ravi schrieb: i can't find out command to show all databases,tables,users and integrity constraints relationships; you

Re: [ADMIN] Size of logfiles

2007-05-23 Thread Peter Elmers
Hi! Just for other users who might have the same question: With default settings, postgres writes 3 WAL files. Each of them has the size of 16 mb. They are located at the data directory within the subdirectory pg_xlog. Cheers, Peter Am 22.05.2007 um 21:22 schrieb Peter Elmers: Hi Chri

Re: [ADMIN] how to view all database,tables,users

2007-05-23 Thread Ireneusz Pluta
Mondi Ravi napisał(a): i can't find out command to show all databases,tables,users and integrity constraints relationships; yours sincerely See tables and views of system catalogs: http://www.postgresql.org/docs/8.2/interactive/catalogs.html and use just SELECT statements on them to get what

Re: [ADMIN] Can I restrict backups?

2007-05-23 Thread John DeSoi
On May 23, 2007, at 4:44 AM, Andreas wrote: Right. It's like that. They should work on projects that only contain a subset e.g. of customer addresses and subsequently on the task related objects like orders regarding the current project. Another thought is to make all data returned throug

Re: [ADMIN] initializing the DB cluster

2007-05-23 Thread Tom Lane
"Islam Hegazy" <[EMAIL PROTECTED]> writes: > I installed the source of PostgreSQL 8.2.3 on a linux machine. The = > installation process ended successfully but when I try to create the = > database cluster using the initdb command I get the following error: > " > creating conversi

Re: [ADMIN] Can I restrict backups?

2007-05-23 Thread Ewald Geschwinde
On 5/23/07, John DeSoi <[EMAIL PROTECTED]> wrote: On May 23, 2007, at 4:44 AM, Andreas wrote: > Right. > It's like that. They should work on projects that only contain a > subset e.g. of customer addresses and subsequently on the task > related objects like orders regarding the current project

[ADMIN]

2007-05-23 Thread filipe paiva
Hi there, I want to write a script where I can create a database automatically. This is intended to create a database during the installation of an application I'm currently develloping. So, I (or the end-user of my app) can't be prompted for the postgres password during the app installation. I a

Re: [ADMIN] What happens on a commit?

2007-05-23 Thread Chris Hoover
Ok, we are looking more into this. In the mean time, can someone please explain to me (or point me to the correct documentation) what happens in PostgreSQL when a commit is issued. What exactly does the database do? Thanks, Chris On 5/22/07, Alvaro Herrera <[EMAIL PROTECTED]> wrote: Chris H

Re: [ADMIN] What happens on a commit?

2007-05-23 Thread Alvaro Herrera
Chris Hoover escribió: > Ok, we are looking more into this. In the mean time, can someone please > explain to me (or point me to the correct documentation) what happens in > PostgreSQL when a commit is issued. What exactly does the database do? It writes a commit WAL record and flushes (fsync) t

[ADMIN]

2007-05-23 Thread filipe paiva
Hi there, I want to write a script where I can create a database automatically. This is intended to create a database during the installation of an application I'm currently develloping. So, I (or the end-user of my app) can't be prompted for the postgres password during the app installation.

Re: [ADMIN]

2007-05-23 Thread Joshua Kramer
I already found that it's possible to store passwords in the file pgpass.conf in the %APPDATA% directory. But that file isn't stored in that location. In fact it doesn't exist in my disk. I already checked the "Store password" Filipe, You need to create that file yourself. Using the format

Re: [ADMIN] [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Purusothaman A
Dear Richard Huxton, Thanks for your quick reply. only the first 3 values(HX, MASK, Rockey4ND) are file object's oid value. the other two are are not oid values. I have shown original output values displayed by postgresql client. I can explain more. 1. HX is a XML file. after downloading that

Re: [ADMIN] [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Richard Huxton
Purusothaman A wrote: Dear Richard Huxton, Thanks for your quick reply. only the first 3 values(HX, MASK, Rockey4ND) are file object's oid value. the other two are are not oid values. Umm - OK. Can I suggest perhaps having different tables for different types of data? I have shown origina

[ADMIN] Performance Monitor

2007-05-23 Thread Jair Elton Batista
How to monitor PgSQL performance, like JConsole for Java Virtual Machine? Usage of memory, CPU, etc. Thank you, Jair.

Re: [ADMIN] [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Purusothaman A
Richard Huxton, Thanks for your detailed reply. I am maintaining various database of same kind in postgresql. Here I have shown various corrupted last line of output of select * from pg_largeobject where oid = xx; in 5 databases. I have used '\o e:\\filename.xml' before executing query and

[ADMIN]

2007-05-23 Thread filipe paiva
I already had done this but it seems the "Store password" function stores the password in a file other than the pgpass.conf because it really stores passwords with or without that file. Can anyone tell me if it is possible to set the "Store password" option in a file? Because if it isn't possi

Re: [ADMIN]

2007-05-23 Thread Vishal Arora
If you are using windows, it's under "%APPDATA%\postgresql\pgpass.conf" (where %APPDATA% refers to the Application Data subdirectory in the windows user's profile and not the postgres user. From: "filipe paiva" <[EMAIL PROTECTED]> To: pgsql-admin@postgresql.org CC: [EMAIL PROTECTED] Subject:

Re: [ADMIN] how to view all database,tables,users

2007-05-23 Thread Vishal Arora
Apart from select statements you can use the following commands on psql prompt - \d [NAME] describe table, index, sequence, or view \d{t|i|s|v|S} [PATTERN] (add "+" for more detail) list tables/indexes/sequences/views/system tables \da [PATTERN] list aggregate functions

Re: [ADMIN] [GENERAL] OIDs - file objects, are damaged by PostgreSQL.

2007-05-23 Thread Richard Huxton
Purusothaman A wrote: Richard Huxton, Thanks for your detailed reply. I am maintaining various database of same kind in postgresql. Here I have shown various corrupted last line of output of select * from pg_largeobject where oid = xx; in 5 databases. I have used '\o e:\\filename.xml' befo