Re: [ADMIN] How to uses self query plan

2007-12-19 Thread Scott Marlowe
On Dec 19, 2007 1:57 AM, olivier boissard <[EMAIL PROTECTED]> wrote: > Scott Marlowe a écrit : > > > On Dec 18, 2007 4:21 PM, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > >> Hello, > >> > >> My purpose is to uses different query plan depending on queries > >> I got the following problem :

[ADMIN] Scripting postgres commands

2007-12-19 Thread Ferry, Craig
I can run the following command from a command prompt with no problem on my database. /usr/bin/vacuumdb --verbose --analyze --all -U postgres But if I try to execute it via a bash shell script, I receive the following error. The role does exist in the database. does not existnot connect to d

Re: [ADMIN] Scripting postgres commands

2007-12-19 Thread Tom Lane
"Ferry, Craig" <[EMAIL PROTECTED]> writes: > I can run the following command from a command prompt with no problem on my > database. > /usr/bin/vacuumdb --verbose --analyze --all -U postgres > But if I try to execute it via a bash shell script, I receive the following > error. The role does ex

Re: [ADMIN] How to uses self query plan

2007-12-19 Thread [EMAIL PROTECTED]
You're right . I will begin by migrate postgresql version. postgresql is now to 8.3 version . A lot of performance inprovements have been made in this last version . In any case I must do a pg_dump/pg_restore. So , Should I try directly 8.3 version or is it more cautious to stay in 8.1.x versio

[ADMIN] problem with compilation of dynalloc2 segmentation fault

2007-12-19 Thread Marcin
Did anybody face the same problem during the compilation of postgresql 8.2.5 on suse 10.2? I'm using gmake 3.81 gcc -I../../include -I../../../../../src/interfaces/ecpg/include -I../../../../../src/interfaces/libpq -I../../../../../src/include -D_GNU_SOURCE -O2 -Wall -Wmissing-prototypes -Wpoi

Re: [ADMIN] How to uses self query plan

2007-12-19 Thread Guillaume Lelarge
[EMAIL PROTECTED] wrote: > You're right . > I will begin by migrate postgresql version. > postgresql is now to 8.3 version . A lot of performance inprovements > have been made in this last version . > In any case I must do a pg_dump/pg_restore. > So , Should I try directly 8.3 version or is it more

Re: [ADMIN] How to uses self query plan

2007-12-19 Thread Scott Marlowe
On Dec 19, 2007 4:23 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > You're right . > I will begin by migrate postgresql version. > postgresql is now to 8.3 version . A lot of performance inprovements > have been made in this last version . > In any case I must do a pg_dump/pg_restore. > So , Sh

Re: [ADMIN] How to uses self query plan

2007-12-19 Thread [EMAIL PROTECTED]
Guillaume Lelarge a écrit : [EMAIL PROTECTED] wrote: You're right . I will begin by migrate postgresql version. postgresql is now to 8.3 version . A lot of performance inprovements have been made in this last version . In any case I must do a pg_dump/pg_restore. So , Should I try directly 8.3

Re: [ADMIN] How to uses self query plan

2007-12-19 Thread Scott Marlowe
On Dec 19, 2007 5:17 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Guillaume Lelarge a écrit : > > [EMAIL PROTECTED] wrote: > > > >> You're right . > >> I will begin by migrate postgresql version. > >> postgresql is now to 8.3 version . A lot of performance inprovements > >> have been made in

Re: [ADMIN] Dump database more than 1 flat file

2007-12-19 Thread A.Burbello
Sorry to insist in this question, but now I was doing some test and I notice that is a good idea to use split utility. This is because the output file got X bytes specified, cut the rest of the line and will not import after. In my example, I generated more than 2 files equal to 1MB. But already

Re: [ADMIN] Dump database more than 1 flat file

2007-12-19 Thread Phillip Smith
Try splitting by line count instead of size: -l, --lines=NUMBER put NUMBER lines per output file pg_dump | split -l 32000 You'll have to experiment to find how many lines will give you a roughly appropriate size for your purposes. Alternatively, another option is to get an USB external HDD

[ADMIN] including variables in copy command

2007-12-19 Thread Dinesh
Hi ALL, I am trying to use Copy command to copy data from table to a flat file. Here is an example: copy ( select * from employee where hire_date between begin_date and end_date) to '/var/data/text.txt' delimiter ';'; But my problem is the query is not able to read variable begin_date and

Re: [ADMIN] including variables in copy command

2007-12-19 Thread Phillip Smith
Could you wrap it in a transaction block? begin; select * into temp_table from employee where hire_date between begin_date and end_date; copy temp_table to '/var/data/text.txt' delimiter ';'; commit; THINK BEFORE YOU PRINT - Save paper if you don't really need to print this *

[ADMIN] strftime pattern list ?

2007-12-19 Thread Kevin Kempter
Anyone know where I can find a full list of the strftime patterns that can be used for log_filename ? Thanks in advance.. /Kevin ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [ADMIN] problem with compilation of dynalloc2 segmentation fault

2007-12-19 Thread Tom Lane
=?UTF-8?Q?Marcin?= <[EMAIL PROTECTED]> writes: > Did anybody face the same problem during the compilation of postgresql 8.2.5 > on suse 10.2? > ... > dynalloc2.pgc: In function âmainâ: > dynalloc2.pgc:55: internal compiler error: Segmentation fault > Please submit a full bug report, > with prepro

Re: [ADMIN] strftime pattern list ?

2007-12-19 Thread Tom Lane
Kevin Kempter <[EMAIL PROTECTED]> writes: > Anyone know where I can find a full list of the strftime patterns that can be > used for log_filename ? man strftime or if you're feeling command-line-challenged, this should provide info usable on most platforms: http://www.opengroup.org/onlinepubs/0079

Re: [ADMIN] problem with compilation of dynalloc2 segmentation fault

2007-12-19 Thread Jorge Servan
Try to set enviroment variable LANG to C value before compilation. If you use sh shell you must execute: export LANG=C. The gcc manual documents this. It's not a compiler bug. Best regards. 2007/12/19, Marcin <[EMAIL PROTECTED]>: > > Did anybody face the same problem during the compilation of po