[ADMIN] Reg: sql commands

2005-09-22 Thread sandhya
Hi...     Is there any equivalent sql commands/queries for ' \l '   (which list out all the databases) and ' \dt ' ( Which lists all the Tables of the current database) If anybody knows Please tell me.Or If there is any way to get the info of databases and tables pls..Explain me This is ve

Re: [ADMIN] Reg: sql commands

2005-09-22 Thread Stef
psql -E To see what that does : man psql sandhya mentioned : => Hi... => Is there any equivalent sql commands/queries for => ' \l ' (which list out all the databases) and => ' \dt ' ( Which lists all the Tables of the current database) => If anybody knows Please tell me.Or If there is any

Re: [ADMIN] Reg: sql commands

2005-09-22 Thread sandhya
No...What i need is... I want to know the equivalent sql queries for \l and \dt commands in order to list the databases and tables. I want to do it through programming Thanks Sandhya - Original Message - From: "Stef" <[EMAIL PROTECTED]> To: "sandhya" <[EMAIL PROTECTED]> Cc: "postgre" ;

Re: [ADMIN] Reg: sql commands

2005-09-22 Thread Hannes Dorbath
Start psql with -E option to see the statements used internally. On 22.09.2005 11:47, sandhya wrote: Is there any equivalent sql commands/queries for ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriat

Re: [ADMIN] Reg: sql commands

2005-09-22 Thread sandhya
Thank you..Hannes - Original Message - From: "Hannes Dorbath" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 3:48 PM Subject: Re: [ADMIN] Reg: sql commands > Start psql with -E option to see the statements used internally. > > On 22.09.2005 11:47, sandhya wrote: > >

Re: [ADMIN] Reg: sql commands

2005-09-22 Thread Stef
sandhya mentioned : => No...What i need is... => I want to know the equivalent sql queries for \l and \dt commands in order => to list the databases and tables. => I want to do it through programming From the psql man-page : -E --echo-hidden Echoes the actual queries generated by \d and

[ADMIN] Is pgdump_all == pg_dumpall -g + pg_dump of individual databases ?

2005-09-22 Thread Rajesh Kumar Mallah
Hi , I suppose pgdump_all creates a SQL script that is capable of recreating the entire database except for large_objects. However pgdump_all produces one single large SQL files and is not useful(easy) if one has to restore a particular table. For this reason we backup our databases individuall

[ADMIN] Copy command not writing complete data to text file

2005-09-22 Thread Kevin Keith
I am having some problems with the COPY... to FILE command - and I am wondering if anyone has experienced similar problems in the past, and what you may have done to resolve the problem? The platform is Free BSD, Postgres version 7.4.5 and the program triggering the COPY command is a CGI scrip

Re: [ADMIN] Copy command not writing complete data to text file

2005-09-22 Thread Michael Fuhr
On Thu, Sep 22, 2005 at 08:27:00AM -0500, Kevin Keith wrote: > The platform is Free BSD, Postgres version 7.4.5 and the program triggering > the COPY command is a CGI script. What language and API are you using? In the next paragraph you mention PQexec(), which implies C or C++ and libpq (some p

Re: [ADMIN] pg_restore fails

2005-09-22 Thread Hannes Dorbath
On 16.09.2005 07:31, Victor Sudakov wrote: Is there any way to fix or workaround this except editing the dump with a text editor (very frustrating with dozens of objects in several schemas being out of order)? In case you only have a text dump.. uhm.. No. In case it's a binary dump, using a n

Re: [ADMIN] Is pgdump_all == pg_dumpall -g + pg_dump of individual databases

2005-09-22 Thread Hannes Dorbath
On 22.09.2005 14:26, Rajesh Kumar Mallah wrote: My doubt is are the individual database backup files created through -Fc options along with an SQL file created using "pgdump_all -g " sufficient to recreate the entire database ? It always was sufficient for us in the past, we're doing exactly t

Re: [ADMIN] Copy command not writing complete data to text file

2005-09-22 Thread Kevin Keith
It is a CGI (shell) script that is calling a C program. I found the issue - which was external to Postgres. I still have one remaining question - if the COPY to FILE command fails, does it return an error? If the program uses: int i; i = PQexec("copy from <> to <>"); and the table has (for ex

[ADMIN] COPY command and skipping errors

2005-09-22 Thread Tomeh, Husam
Title: Message   Is there a way to skip errors during the run of the COPY command (loading data from a file to a table) like what Oracle SQL*Loader has? The reason I'm asking is that if the extract file from the mainframe has an invalid character, the COPY terminates and doesn't continue lo

[ADMIN] Backing up several tables using pg_dump -t

2005-09-22 Thread Tomeh, Husam
I'm having problem backing up several tables using pg_dump. When selecting one table only with the '-t' option, it works just fine. When I tried to include several tables, pg_dump fails with error that the tables specified don't exist. Can you show me an example of backing up several tables using

Re: [ADMIN] Backing up several tables using pg_dump -t

2005-09-22 Thread Rajesh Kumar Mallah
man pg_dump seems to say it is not possible -t table --table=table Dump data for table only. It is possible for there to be multi- ple tables with the same name in different schemas; if that is the case, all matching tables will be

Re: [ADMIN] COPY command and skipping errors

2005-09-22 Thread Bruce Momjian
Tomeh, Husam wrote: > > Is there a way to skip errors during the run of the COPY command > (loading data from a file to a table) like what Oracle SQL*Loader has? > The reason I'm asking is that if the extract file from the mainframe has > an invalid character, the COPY terminates and doesn't cont

Re: [ADMIN] COPY command and skipping errors

2005-09-22 Thread Alvaro Herrera
On Thu, Sep 22, 2005 at 04:41:57PM -0400, Bruce Momjian wrote: > Tomeh, Husam wrote: > > > > Is there a way to skip errors during the run of the COPY command > > (loading data from a file to a table) like what Oracle SQL*Loader has? > > The reason I'm asking is that if the extract file from the m

Re: [ADMIN] Backing up several tables using pg_dump -t

2005-09-22 Thread Hannes Dorbath
On 22.09.2005 21:38, Tomeh, Husam wrote: Can you show me an example of backing up several tables using pg_dump. I'd just warp pg_dump in a little (shell-)script or dump all tables and pass pg_restore a TOC list (-L option) of objects I want. -- Regards, Hannes Dorbath -

[ADMIN] Encrypted Disks

2005-09-22 Thread Peter Darley
Folks, A client is asking us about data security, and keeping data encrypted on disk. I recall there was some discussion about this before, including things like for it to be secure an operator would need to put in a key when the disk is mounted, that once it is mounted anyone with permis

[ADMIN] alter user

2005-09-22 Thread Wim Bertels
Ls, any user can change his own password, i haven't found a way of prohibiting this. what about a general user (eg test/test), that is used by many people, one of those people could use alter user (being connected as test/test) the change the password, leaving the rest clueless.. suggestions to

Re: [ADMIN] alter user

2005-09-22 Thread Scott Marlowe
Title: RE: [ADMIN] alter user Instead of using a general purpose account, why not give everyone an account, then make them a member of a group, and give that group the access. That way you can easily add / remove people from the group instead of trying to do it this way. Otherwise, don't us

Re: [ADMIN] Copy command not writing complete data to text file

2005-09-22 Thread Michael Fuhr
On Thu, Sep 22, 2005 at 11:49:24AM -0500, Kevin Keith wrote: > It is a CGI (shell) script that is calling a C program. I found the issue - > which was external to Postgres. So what was it? Even if it wasn't a PostgreSQL problem it might be educational to learn what happened. > I still have one

Re: [ADMIN] alter user

2005-09-22 Thread Wim Bertels
On Friday 23 September 2005 01:51, Scott Marlowe seinde rooksignalen: > Instead of using a general purpose account, why not give everyone an > account, then make them a member of a group, and give that group the > access. > > That way you can easily add / remove people from the group instead of > t

[ADMIN] PgAdmin3 1.2.2 Install on Win32 Disrupts Pg Service

2005-09-22 Thread Steuckrath, Randy A
Title: PgAdmin3 1.2.2 Install on Win32 Disrupts Pg Service System: Windows XP Pro SP2 Running Postgres 8.0.3 for several months with the embedded PgAdmin3 1.2.1 on the same machine with no problems. Postgres is configured to start automatically as a service. I installed the PgAdmin3 1.2.2 wh

Re: [HACKERS] [ADMIN] How to determine date / time of last postmaster

2005-09-22 Thread Bruce Momjian
Alvaro Herrera wrote: > On Wed, Sep 07, 2005 at 12:38:44AM -0500, Jim C. Nasby wrote: > > On Tue, Sep 06, 2005 at 08:22:34PM -0400, Tom Lane wrote: > > > PG 8.1 will have a function to return postmaster start time, but not > > > database reset time. I wonder if this is misdefined --- if you are >

Re: [ADMIN] alter user

2005-09-22 Thread Bruno Wolff III
On Fri, Sep 23, 2005 at 01:13:37 +0200, Wim Bertels <[EMAIL PROTECTED]> wrote: > Ls, > > any user can change his own password, > i haven't found a way of prohibiting this. > what about a general user (eg test/test), that is used by many people, > one of those people could use alter user (being c

Re: [ADMIN] alter user

2005-09-22 Thread Bruno Wolff III
On Fri, Sep 23, 2005 at 02:32:51 +0200, Wim Bertels <[EMAIL PROTECTED]> wrote: > > > > Otherwise, don't use a password, set the machine to use trust or ident or > > something like that where a password wouldn't matter. > > although it is then a user/pasword known by a lot of people, > it is stil

[ADMIN] Is pgdump_all == pg_dumpall -g + pg_dump of individual databases ?

2005-09-22 Thread Rajesh Kumar Mallah
Hi , I suppose pgdump_all creates a SQL script that is capable of recreating the entire database except for large_objects. However pgdump_all produces one single large SQL files and is not useful(easy) if one has to restore a particular table. For this reason we backup our databases individua

[ADMIN] vacuum message

2005-09-22 Thread Colton A Smith
Hi: I did a vacuum verbose on my database and at the end of the output I got the following: INFO: free space map: 85 relations, 18940 pages stored; 29584 total pages needed DETAIL: Allocated FSM size: 1000 relations + 2 pages = 186 kB shared memory. VACUUM Can somebody tell me wh

Re: [ADMIN] postgresql cluster on SAN

2005-09-22 Thread Chris Travers
Robert Ngo wrote: Robert Ngo wrote: Chris Browne wrote: [EMAIL PROTECTED] (Robert Ngo) writes: Can i create create a cluster of postgresql server by sharing the database file on a SAN? I am also looking into slony but slony replicate data to each server and my database will potentially

[ADMIN] postgresql cluster on SAN

2005-09-22 Thread Robert Ngo
Hi, Can i create create a cluster of postgresql server by sharing the database file on a SAN? I am also looking into slony but slony replicate data to each server and my database will potentially have terabytes of data. I am thinking about a solution where a cluster of database server will sh

[ADMIN] pgAdmin/pgAgent problems

2005-09-22 Thread Francis Tiangco
Platform: Windows XP/Cygwin PostgreSQL version: 7.4 PgAdmin version: 1.3.0 (Sep 15 2005)   Problems/Suggestions: 1. pgAdmin hangs when I view the details of a newly created job (without creating a step or a schedule yet)   2. When I do create a job, a step and a schedule at the same time, I get: ER

[ADMIN] Trying to copy data.

2005-09-22 Thread Peter Ivarsson
 I am trying to moving data from a DB2 database, but some rows has ^M in it. I am changing the ^M to \r\n, but the \r\n  is invoked in the string instead of being functional.   The fields are separated with | and quotes with " This since there could be , in the data, and I'm using   copy

[ADMIN] The full runtime environment of Mingw for test

2005-09-22 Thread haibin zhang
HI All: I have built a runtime environment of Mingw that including the newest version of autoconf, automake,libtool , libiconv and gettext that have been tested, if you don't have full runtime environment of Mingw , you can donwload it from : http://sourceforge.net/project/showfiles.php?group_id=

Re: [ADMIN] 7.4 <-> 8.0

2005-09-22 Thread Peter Childs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Warren Snelling wrote: > > > Would you suggest scripting the vacuum full / reindex process to > run periodically (once a week or so)? Right now disk space on this > machine is not an issue, but vacuuming and reindexing occasionally > should keep the d

[ADMIN] Contraint Trigger Permissions

2005-09-22 Thread [EMAIL PROTECTED]
I'm using PostgreSQL 7.3.6 and run into a permissions problem when a particular constraint trigger is attempting to restore using pg_restore. Is there a good way to analyze what permissions are required for a particular constraint trigger? I have a problem where it looks like a contraint trigger

Re: [ADMIN] alter user

2005-09-22 Thread Tom Lane
Bruno Wolff III <[EMAIL PROTECTED]> writes: > Why do you say that? Ident authentication is secure if you are on the same > box as the postgers server. The real question is this: given that you don't believe in a personal password as authorization to use the database, what exactly *would* you like

Re: [ADMIN] vacuum message

2005-09-22 Thread Adrian Engelbrecht
You need to increase your max_fsm_pages to at least 29584 pages to accommodate / monitor all free pages. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Colton A Smith Sent: Thursday, 22 September 2005 8:00 a.m. To: pgsql-admin@postgresql.org Subject: [ADMIN]