Re: [ADMIN] tabla pg_user Ayuda......

2007-02-09 Thread Jaime Casanova
On 2/9/07, Daniel Medina <[EMAIL PROTECTED]> wrote: Por algun motivo desconocido en la tabla pg_user esta dos veces registrado en usuario "postgres", por esto no me deja realizar backups con el comando pg_dump, como hago para eliminar uno de los dos registros teniendo en cuenta que los datos son

Re: [ADMIN] tabla pg_user Ayuda......

2007-02-09 Thread Eduardo J. Ortega
Yo sugeriría hacer lo siguiente: 1) detener postgres 2) copiar el directorio de datos de postgres a un nuevo directorio preservando permisos 3) iniciar el postgres sobre el directorio copia recién creado. 4) Realizar el delete de una de las filas en la tabla de usuarios y probaro que todo funcio

[ADMIN] online tape backup

2007-02-09 Thread Eduardo J. Ortega
Hi: I'm attempting to set up online backup as described on http://www.postgresql.org/docs/8.1/static/backup-online.html For this, i am following these steps: 1) pg_start_backup 2) tar to my tape device /data/postgresql excluding /data/postgresql/pg_xlog 3) pg_stop_backup 4) delete WAL files unde

Re: [ADMIN] Question on Fragmentations

2007-02-09 Thread Peter Koczan
Michael Monnerie wrote: On Freitag, 9. Februar 2007 04:08 Peter Koczan wrote: Case in point, I use xfs as the filesystem running under postgres, and after a few days the "major" database clusters showed ~90% fragmentation on their respective partitions (which is about a 10 to 1 ratio of file

Re: [pgsql-es-ayuda] [ADMIN] tabla pg_user Ayuda......

2007-02-09 Thread GABRIEL COLINA
Te comento lo que haria, nunca me paso con esa tabla, pero si con otras. Creo una tabla con identica estructura. pg_user_2 insert into pg_user_2 select usename,usesysid,usecreatetable,usesuper,usecatupd, passwd,,valuntil,useconfig from pg_user group by usename,usesysid,usecr

Re: [ADMIN] Question on Fragmentations

2007-02-09 Thread Michael Monnerie
On Freitag, 9. Februar 2007 04:08 Peter Koczan wrote: > Case in point, I use xfs as the filesystem running under postgres, > and after a few days the "major" database clusters showed ~90% > fragmentation on their respective partitions (which is about a 10 to > 1 ratio of file fragments to files). A

Re: [ADMIN] tabla pg_user Ayuda......

2007-02-09 Thread Daniel Medina
> Por algun motivo desconocido en la tabla pg_user esta dos veces > registrado en usuario "postgres", por esto no me deja realizar backups > con el comando pg_dump, como hago para eliminar uno de los dos registros > teniendo en cuenta que los datos son identicos y que es el usuario admin > del sis

[ADMIN] tabla pg_user Ayuda......

2007-02-09 Thread Daniel Medina
Por algun motivo desconocido en la tabla pg_user esta dos veces registrado en usuario "postgres", por esto no me deja realizar backups con el comando pg_dump, como hago para eliminar uno de los dos registros teniendo en cuenta que los datos son identicos y que es el usuario admin del sistema y por

Re: [ADMIN] Hierarchical structure

2007-02-09 Thread imad
There is a contrib module named tablefunc. It has a function connect_by that can do some things like this. Check if it is sufficient for you. --Imad www.EnterpriseDB.com On 2/10/07, Alexander B. <[EMAIL PROTECTED]> wrote: Hi, I need to create a view using hierarchical structure. Let me explain

[ADMIN] Hierarchical structure

2007-02-09 Thread Alexander B.
Hi, I need to create a view using hierarchical structure. Let me explain how is designed the table and what's the expected result. TABLE: coo_nro integer coo_nro_father integer level integer DATA: 100 – null – 1 106 – null – 1 134 – 100 – 2 725 – 100 – 2 635 – 106 – 2 423 – 134 – 3 814 – 725 – 3

Re: [ADMIN] database encryption

2007-02-09 Thread Bruno Wolff III
On Fri, Feb 09, 2007 at 09:03:20 +0100, Olivier Boissard <[EMAIL PROTECTED]> wrote: > Thanks for responses. > I expose the context of my question : > > I need to install a server for a specific web application written in PHP. > This one works by making queries to a postgresql database. The datab

Re: [ADMIN] database encryption

2007-02-09 Thread Olivier Boissard
Bruce Momjian a écrit : Michael Fuhr wrote: On Thu, Feb 08, 2007 at 09:13:48AM +0100, Olivier Boissard wrote: I was thinking about a system in which only the php programs will be able to manage stored informations. In case of theft or unexpected access to servers nobody could be able