Re: [GENERAL] Recover corrupted data

2017-04-19 Thread Alexandre
oken, it will happen > again... > If you have more than one database in your cluster, you can find what's > the database that's been corrupted and restore just that one, instead of > the whole cluster. > Cheers > Moreno > > > > On Wed, Apr 19, 2017 at 10:18 AM

Re: [GENERAL] Recover corrupted data

2017-04-19 Thread Alexandre
ws (or your hardware) > destroy your data on crash. is there some RAID cache that is not backed up > by a battery? > > > On Wed, Apr 19, 2017 at 10:18 AM, Alexandre wrote: > >> Hello, >> >> The computer had a unexpected shutdown, it is a Windows machine. >

[GENERAL] Recover corrupted data

2017-04-19 Thread Alexandre
Hello, The computer had a unexpected shutdown, it is a Windows machine. Now some data appears to be corrupted, I am receiving exceptions like this: ERROR: could not read block 0 in file "base/16393/16485": read only 0 of 8192 bytes There is some way to correct this?

[GENERAL] plpythonu

2008-01-17 Thread Alexandre da Silva
#x27;t know if is the correct way to use plpythonu, and if I will have future problems. Another question is that I have read in some discussion list (old message year 2003) the possibility of plpython be removed from postgresql, this information is valid yet? sorry bad En

[GENERAL] Ordering problem with varchar (DESC)

2007-01-31 Thread Alexandre Leclerc
t the result is exactly like the first one but perfectly reversed in it's order? Best regards. -- Alexandre Leclerc Projets spéciaux Ipso Systèmes Stratégiques inc. 176 boul. Harwood (suite 10), Vaudreuil-Dorion, QC, J7V 1Y2 Tel: 450-424-6847 ext. 108 / 1-800-879-4776 Fax: 450-424-843

Re: [GENERAL] Ordering problem with varchar (DESC)

2007-01-31 Thread Alexandre Leclerc
Daniel Verite a écrit : > Alexandre Leclerc wrote: > >> SELECT * from t1 ORDER BY date, time DESC; >> date (date type) time (varchar) data >> 2007-01-30 9h30 d2 >> 2007-01-3017h20 d5 >> 2007-01-3013h45

Re: [GENERAL] Ordering problem with varchar (DESC)

2007-01-31 Thread Alexandre Leclerc
t; needs to be 09h30 and so forth. Exactly. This is sorted that way. This is what I'll do, inserting a 0. Best regards. -- Alexandre Leclerc ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to c

[GENERAL] Ordering problem with varchar (DESC)

2007-01-31 Thread Alexandre Leclerc
t the result is exactly like the first one but perfectly reversed in it's order? Best regards. -- Alexandre Leclerc ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] pg_locks: who is locking ? (SOLVED!)

2006-10-17 Thread Alexandre Arruda
Tom Lane wrote: Alexandre Arruda <[EMAIL PROTECTED]> writes: But pg_stat_activity joined with pg_locks only give me informations about the lock itself. Realy, I want a (possible) simple information: Who is locking me ? You need a self-join to pg_locks to find the matching lock that i

Re: [GENERAL] pg_locks: who is locking ?

2006-10-16 Thread Alexandre Arruda
Alvaro Herrera escreveu: Alexandre Arruda wrote: Hi, My Database have a lot of locks not granted every moments in a day. Can I create a view that returns someting like this ? UserGranted Table Who_is_locking_me PID --- - - --- joe f foo

[GENERAL] pg_locks: who is locking ?

2006-10-16 Thread Alexandre Arruda
frank 1313 ann f foo frank 1414 frank t foo (...) (Or the locked transactions, if the table cold't be retrived) pg_locks view does not give me WHO is locking... Best regards, Alexandre --

Re: [GENERAL] pg_dump & pg_restore suggestion

2006-07-24 Thread Alexandre Arruda
y, your indexes. If you want to restore one table from a file, you have previously to know what the indexes and PK the table have and restore each manually. Thanks, Alexandre Pavel Golub wrote: > Hello, pgsql-general. > > Is it possible to create not only executable version of pg_dump an

Re: [GENERAL] pg_dump -t <> pg_restore -t

2006-04-27 Thread alexandre - aldeia digital
Richard Huxton wrote: > alexandre - aldeia digital wrote: >> Hi, >> >> If I do: >> >> pg_dump -Fc -t TABLE database > table-custom.sql >> >> The pg_dump returns the DDL of the table, the data and the DDL for >> indexes and PK. If I use -s,

[GENERAL] pg_dump -t <> pg_restore -t

2006-04-26 Thread alexandre - aldeia digital
tore -Fc -t TABLE backup-custom.file > table-plain.sql Only the DDL of table and data is returned, but not indexes, etc. Question: How can I restore a table with all other dependences from a custom file database ? PG 8.1.3 Thanks, Alexandre ---(en

[GENERAL] differences between pg_dump and pg_restore with -t

2006-02-13 Thread alexandre - aldeia digital
table.sql Only the DDL of table and data is returned, but not indexes, etc. Question: How can I restore a table with all other dependences from a custom file database ? PG: 8.1.2 and 8.0.6 Thanks, Alexandre ---(end of broadcast)--- TIP 9: In

[GENERAL] differences between pg_dump and pg_restore with -t

2006-02-13 Thread alexandre - aldeia digital
table.sql Only the DDL of table and data is returned, but not indexes, etc. Question: How can I restore a table with all other dependences from a custom file database ? PG: 8.1.2 and 8.0.6 Thanks, Alexandre ---(end of broadcast)--- TIP 2: Don&#

Re: [GENERAL] pg_dump error codes

2006-01-03 Thread alexandre - aldeia digital
Michael Fuhr wrote: On Mon, Jan 02, 2006 at 08:45:28AM -0200, alexandre - aldeia digital wrote: In my Linux bash backup scripts, I wish to send an e-mail when an error occurs in pg_dump proccess. And if possible, I want to send the error output via e-mail. Anybody knows how to capture the

[GENERAL] pg_dump error codes

2006-01-02 Thread alexandre - aldeia digital
? Thanks Alexandre ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Start up script for Fedora Core 3

2005-08-24 Thread Alexandre Barros
Chris Guo wrote: Dear all, We are using Fedora Core 3 in our company, and we installed postgresql 8.0.3 as the database system. I wonder if anybody has the start up script for this version so we can start postgresql service automatically after we reboot the server. Any help will be high

Re: [GENERAL] PostgreSQL 8.0.3 limiting max_connections to 64 ?

2005-08-18 Thread Alexandre Barros
--- Tom Lane wrote: Alexandre Barros <[EMAIL PROTECTED]> writes: max_connections, shared_buffers, shmmax were tweaked, but the server does not seems to respect the 500 max_connections... Er ... did you restart the postmaster after increasing those parameters? regar

Re: [GENERAL] postgresql 8 abort with signal 10

2005-06-02 Thread Alexandre Biancalana
> > hardware, I already changed memory, what can I try now ? the processor > > ? motherboard ?? > > > On 5/3/05, Scott Marlowe <[EMAIL PROTECTED]> wrote: > > > On Tue, 2005-05-03 at 15:04, Alexandre Biancalana wrote: > > > > Thank you for the detailed expl

Re: [GENERAL] Connecting to Postgres from LAN

2005-05-31 Thread Alexandre Lollini
on 30/05/05 20:47, Andrus <[EMAIL PROTECTED]> wrote: > I installed Postgres 8 to Windows XP and added a line > > hostall all 168.179.0.1/32 trust > > to pg_hba.conf file > > > When connection from LAN to the Postgres with user name postgres I got error > > no pg_h

[GENERAL] Problem with void integer

2005-05-30 Thread Alexandre Lollini
I have a big problem to jump from 7.2 to 8.0.3 In my application I was doing a major use of int and float And the difference between '0' and void NULL '' data content. Now it seems to me that void is not allowed for an integer ? What should I do ? ---(end of broadcast)--

Re: [GENERAL] postgresql 8 abort with signal 10

2005-05-03 Thread Alexandre Biancalana
Ohhh god :( The FreeBSD is the last STABLE version. I can try to change some hardware, I already changed memory, what can I try now ? the processor ? motherboard ?? On 5/3/05, Scott Marlowe <[EMAIL PROTECTED]> wrote: > On Tue, 2005-05-03 at 15:04, Alexandre Biancalana wrote: >

Re: [GENERAL] postgresql 8 abort with signal 10

2005-05-03 Thread Alexandre Biancalana
Thank you for the detailed explanation Scott, they are very handy !! I reduced the shared_buffers to 32768, but the problem still occurs. Any other idea ?? ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister co

Re: [GENERAL] postgresql 8 abort with signal 10

2005-05-03 Thread Alexandre Biancalana
On 5/3/05, Scott Marlowe <[EMAIL PROTECTED]> wrote: > On Tue, 2005-05-03 at 11:36, Alexandre Biancalana wrote: > > >>You need to find out what's triggering that. Turning on query logging > > >>would be a good way of investigating. > > &g

Re: [GENERAL] postgresql 8 abort with signal 10

2005-05-03 Thread Alexandre Biancalana
>>You need to find out what's triggering that. Turning on query logging >>would be a good way of investigating. Which directives can I use to enable this ? debug_print_parse ? debug_print_rewritten ? debug_print_plan ? debug_pretty_print ? >>Rather large, shared buffers for a machine with only

[GENERAL] postgresql 8 abort with signal 10

2005-05-03 Thread Alexandre Biancalana
could result in this kind of problem ? Any ideas ? Any thoughts ? Best Regards, Alexandre ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-21 Thread Alexandre
Chris (and others), thank you for the good explanation! =) I will try to use database as you recommend, thank you again for the advices! Regards, /Alexandre. On Apr 20, 2005, at 17:39, Chris Browne wrote: I think you're missing two points: 1. With careful design, the ISAM "wrapper&qu

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-20 Thread Alexandre
I understand, that there is already a lot of overhead, but Berkeley DB also "provides strict ACID transaction semantics". Would you like to say, that PostgreSQL will be faster on simple operations than Berkeley DB? Regards, /Alexandre. ---(end of broadcast)-

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
, in some, of course, SQL is more suitable. As Tom said absolutely correct, in such situations Berkeley DB is something that more suitable, but it will add another one database, so ISAM-like (native, which does not translate it's calls to the SQL) access to the PostgreSQL will be just f

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
On Apr 19, 2005, at 23:24, Dan Sugalski wrote: At 9:40 PM +0400 4/19/05, Alexandre wrote: Lane, thank you, but it is not: PostISAM "generates SQL statements on the fly from traditional ISAM (read, write, start) statements", so it just add overhead, and is not what I'm looking for

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
, /Alexandre. On Apr 19, 2005, at 22:37, Tom Lane wrote: Alexandre <[EMAIL PROTECTED]> writes: Lane, thank you, but it is not: PostISAM "generates SQL statements on the fly from traditional ISAM (read, write, start) statements", so it just add overhead, and is not what I'm looking fo

Re: [GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
Lane, thank you, but it is not: PostISAM "generates SQL statements on the fly from traditional ISAM (read, write, start) statements", so it just add overhead, and is not what I'm looking for. Anyway, thank you for the information. Regards, /Alexandre. On Apr 19, 2005, at 18:16,

[GENERAL] Simplified (a-la [G|N]DBM) DB access

2005-04-19 Thread Alexandre
features, which realized great in PostgreSQL (for example, recovery, transactions) and I will get harder administrative support, backup and so on. Thank you in advance, Regards, /Alexandre. ---(end of broadcast)--- TIP 8: explain analyze is your

[GENERAL] Blob Fields

2005-03-04 Thread Alexandre da Siva
Blobs is not Implemented on PostgreSQL, but I need to this field type on PosgreSQL databases, how I can to use this? I'm using delphi...     ps: I readed PosgreSQL Manual and other lists and sites, but not get a answer for my specific problem  

Re: [GENERAL] Killing process through of a function

2005-02-18 Thread alexandre::aldeia digital
ion" thats needs to run "isolated", and a function to kill anybody is very usefull. Thanks for your help. Alexandre Functions written in C, PL/Perl, PL/Tcl, etc., can use whatever facilities those languages provide, such as sending signals to processes. Whether that's

[GENERAL] Killing process through of a function

2005-02-17 Thread alexandre::aldeia digital
ng process before execute this, to avoid the lock wait. Thanks for any help Alexandre de Arruda Paes ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] Error al Subir base de datos

2005-01-20 Thread alexandre::aldeia digital
Hi, You need to create you database with an enconding like LATIN1: createdb -E latin1 mydb Alexandre Juan Jose Siles Salinas wrote: Cuando subo la base de datos con pg_restore -d mydb < mydb.tar restablece toda la informacion pero los acentos y ñ muestran caracteres en otra codificacion c

[GENERAL] Index, Tablespace and performance

2005-01-02 Thread alexandre::aldeia digital
Hi, I have a 4 x SCSI in RAID 10 (PG 7.4.6) with a regular performance. My database have 55 Gb of data. In PG 8, moving the indexes to a separeted disk (or array) can (generally) improve the performance if the system make a heavy use of indexes ? Thanks Alexandre ---(end

[GENERAL] pgdump & blob

2000-07-13 Thread Alexandre FLAMENT
Is there a version of pg_dump that save blob ? ___ Vendez tout... aux enchères - http://www.caraplazza.com