pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgresql DB on a live cd
12+ messages / 7 participants
[nested] [flat]

* Postgresql DB on a live cd
@ 2003-11-19 10:19  Lucio <luke@iond.it>
  0 siblings, 3 replies; 12+ messages in thread

From: Lucio @ 2003-11-19 10:19 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I'am trying to create a demo cd (knoppix) with a jdbc application.

This application uses a static (read-only, no insert, modify or delete) 200MB
postgresql db, so can't put pgsql/data/base and pgsql/data/pg_xlog in ramdisk.

postmaster fails to start because can't open the files in these two dirs with
read and write access.

The question is : can postmaster start only with read access ?

Any alternative solutions ?

Thank in advance,
Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Postgresql DB on a live cd
@ 2003-11-19 10:33  mail@iond.it
  0 siblings, 2 replies; 12+ messages in thread

From: mail@iond.it @ 2003-11-19 10:33 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I'am trying to create a demo cd (knoppix) with a jdbc application.

This application uses a static (read-only, no insert, modify or delete) 200MB
postgresql db, so can't put pgsql/data/base and pgsql/data/pg_xlog in ramdisk.

postmaster fails to start because can't open the files in these two dirs with
read and write access.

The question is : can postmaster start only with read access ?

Any alternative solutions ?

Thank in advance,
Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 11:43  jtaaribi <jtaaribi@terra.es>
  parent: mail@iond.it
  1 sibling, 0 replies; 12+ messages in thread

From: jtaaribi @ 2003-11-19 11:43 UTC (permalink / raw)
  To: mail@iond.it; pgsql-admin

http://www.varlena.com/varlena/GeneralBits/42.php

Regards

Inaki

-----Mensaje original-----
De: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]En nombre de mail@iond.it
Enviado el: miércoles, 19 de noviembre de 2003 11:33
Para: pgsql-admin@postgresql.org
Asunto: [ADMIN] Postgresql DB on a live cd


Hi,

I'am trying to create a demo cd (knoppix) with a jdbc application.

This application uses a static (read-only, no insert, modify or delete)
200MB
postgresql db, so can't put pgsql/data/base and pgsql/data/pg_xlog in
ramdisk.

postmaster fails to start because can't open the files in these two dirs
with
read and write access.

The question is : can postmaster start only with read access ?

Any alternative solutions ?

Thank in advance,
Lucio


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 13:45  mail@iond.it
  parent: mail@iond.it
  1 sibling, 1 reply; 12+ messages in thread

From: mail@iond.it @ 2003-11-19 13:45 UTC (permalink / raw)
  To: pgsql-admin

> http://www.varlena.com/varlena/GeneralBits/42.php
> Regards
> Inaki

Thank you Inaki for the direction,

This is the interesting part :

 --> log file -- this can be directed to /dev/null 
 --> There are ways to stop the writing to the log file and pgstat.stat, but pg_clog cannot be turned off.

Sorry for my questions but I'm a newbie postgresql user.

Real data are only in pgsql/data/base ?
Does postmaster open these files in read-write mode ?

What is defined as "log file" is in pgsql/data/pg_xlog ?
Here I have the biggest files and if these ones are only logs I could turning off them.
Please, can you give me any direction how to do it, or how to redirect them to /dev/null ?

I don't care about turning off pc_clog, can put it in ramdisk.

Thanks

Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 15:13  Greg Spiegelberg <gspiegelberg@cranel.com>
  parent: mail@iond.it
  0 siblings, 1 reply; 12+ messages in thread

From: Greg Spiegelberg @ 2003-11-19 15:13 UTC (permalink / raw)
  To: mail@iond.it; +Cc: pgsql-admin

Why not have a static copy of the pg_clog on boot, copy it to a ramdisk
and point Postgres there?

Greg


mail@iond.it wrote:
>>http://www.varlena.com/varlena/GeneralBits/42.php
>>Regards
>>Inaki
> 
> 
> Thank you Inaki for the direction,
> 
> This is the interesting part :
> 
>  --> log file -- this can be directed to /dev/null 
>  --> There are ways to stop the writing to the log file and pgstat.stat, but pg_clog cannot be turned off.
> 
> Sorry for my questions but I'm a newbie postgresql user.
> 
> Real data are only in pgsql/data/base ?
> Does postmaster open these files in read-write mode ?
> 
> What is defined as "log file" is in pgsql/data/pg_xlog ?
> Here I have the biggest files and if these ones are only logs I could turning off them.
> Please, can you give me any direction how to do it, or how to redirect them to /dev/null ?
> 
> I don't care about turning off pc_clog, can put it in ramdisk.
> 
> Thanks
> 
> Lucio
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


-- 
Greg Spiegelberg
  Sr. Product Development Engineer
  Cranel, Incorporated.
  Phone: 614.318.4314
  Fax:   614.431.8388
  Email: gspiegelberg@Cranel.com
Cranel. Technology. Integrity. Focus.





^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 15:26  Mailer <mail@iond.it>
  parent: Greg Spiegelberg <gspiegelberg@cranel.com>
  0 siblings, 0 replies; 12+ messages in thread

From: Mailer @ 2003-11-19 15:26 UTC (permalink / raw)
  To: Greg Spiegelberg <gspiegelberg@cranel.com>; +Cc: pgsql-admin

Alle 16:13, mercoledì 19 novembre 2003, hai scritto:
> Why not have a static copy of the pg_clog on boot, copy it to a ramdisk
> and point Postgres there?
>
> Greg

Hi, Greg

My problem is around base (70MB) and pg_xlog (115MB) dirs, and not pc_clog (20Kb) dir
that, as you also say, can be copied to the ramdisk.

How to redirect postgresql log files to /dev/null ?
Wandering around the net, I have read that wal can't be disabled.

Regards

Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 19:54  Marc G. Fournier <scrappy@postgresql.org>
  parent: Lucio <luke@iond.it>
  2 siblings, 2 replies; 12+ messages in thread

From: Marc G. Fournier @ 2003-11-19 19:54 UTC (permalink / raw)
  To: Lucio <luke@iond.it>; +Cc: pgsql-admin

On Wed, 19 Nov 2003, Lucio wrote:

> Hi,
>
> I'am trying to create a demo cd (knoppix) with a jdbc application.
>
> This application uses a static (read-only, no insert, modify or delete) 200MB
> postgresql db, so can't put pgsql/data/base and pgsql/data/pg_xlog in ramdisk.
>
> postmaster fails to start because can't open the files in these two dirs with
> read and write access.
>
> The question is : can postmaster start only with read access ?
>
> Any alternative solutions ?

Create a memory file system and mount that onto as the directory its
trying to use?




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 20:25  Lucio <luke@iond.it>
  parent: Marc G. Fournier <scrappy@postgresql.org>
  1 sibling, 0 replies; 12+ messages in thread

From: Lucio @ 2003-11-19 20:25 UTC (permalink / raw)
  To: Marc G. Fournier <scrappy@postgresql.org>; +Cc: pgsql-admin

> Create a memory file system and mount that onto as the directory its
> trying to use?

Hi Marc

This is what Knoppix already makes: during boot creates /var/lib/pgsql as a link
to a ramdisk (maybe do you mean something different with "memory fs" ?)

Just now with pg_resetxlog (thanks god there's the net) I have cleared the
pg_xlog dir: 112MB --> 16MB   and this is a good first result.

Still continue to experiment...

Thanks and regards

Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-19 20:32  Mailer <mail@iond.it>
  parent: Marc G. Fournier <scrappy@postgresql.org>
  1 sibling, 0 replies; 12+ messages in thread

From: Mailer @ 2003-11-19 20:32 UTC (permalink / raw)
  To: pgsql-admin

> Create a memory file system and mount that onto as the directory its
> trying to use?

Hi Marc

This is what Knoppix already makes: during boot creates /var/lib/pgsql as a link
to a ramdisk (maybe do you mean something different with "memory fs" ?)

Just now with pg_resetxlog (thanks god there's the net) I have cleared the
pg_xlog dir: 112MB --> 16MB   and this is a good first result.

Still continue to experiment...

Thanks and regards

Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-20 08:38  Ron Mayer <rm_pg@cheapcomplexdevices.com>
  parent: Lucio <luke@iond.it>
  2 siblings, 0 replies; 12+ messages in thread

From: Ron Mayer @ 2003-11-20 08:38 UTC (permalink / raw)
  To: Lucio <luke@iond.it>

Lucio wrote:
> Hi,
> 
> I'am trying to create a demo cd (knoppix) with a jdbc application.
> 
> This application uses a static (read-only, no insert, modify or delete) 200MB
> postgresql db, so can't put pgsql/data/base and pgsql/data/pg_xlog in ramdisk.

One thing I don't think I saw mentioned yet....
I think some large sorts and temporary tables also use
   ..../base/[whatevernumber]/pgsql_tmp
so you probably want to make that a symlink to something on the ramdisk
as well.



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-20 08:47  Ron Mayer <rm_pg@cheapcomplexdevices.com>
  parent: Lucio <luke@iond.it>
  2 siblings, 1 reply; 12+ messages in thread

From: Ron Mayer @ 2003-11-20 08:47 UTC (permalink / raw)
  To: Lucio <luke@iond.it>

Lucio wrote:
> 
> This application uses a static (read-only, no insert, modify or delete) 200MB
> postgresql db, so can't put pgsql/data/base and pgsql/data/pg_xlog in ramdisk.

One thing I don't think I saw mentioned yet....I think certain queries 
create temporary tables (or at least use some temporary space) so
   ..../base/[whatevernumber]/pgsql_tmp
should be a symlink to something on the ramdisk as well.

(Kinda off-topic -- anecdotally it feels to me that some queries
go faster if I put /pgsql_tmp on a different device & disk controller.
If I verify this I'll post results to perform)

   Ron Mayer
   rm_pg@cheapcomplexdevices.com



^ permalink  raw  reply  [nested|flat] 12+ messages in thread

* Re: Postgresql DB on a live cd
@ 2003-11-21 10:05  mail@iond.it
  parent: Ron Mayer <rm_pg@cheapcomplexdevices.com>
  0 siblings, 0 replies; 12+ messages in thread

From: mail@iond.it @ 2003-11-21 10:05 UTC (permalink / raw)
  To: Ron Mayer <rm_pg@cheapcomplexdevices.com>; +Cc: pgsql-admin

Alle 09:47, giovedì 20 novembre 2003, Ron Mayer ha scritto:

> One thing I don't think I saw mentioned yet....I think certain queries
> create temporary tables (or at least use some temporary space) so
>    ..../base/[whatevernumber]/pgsql_tmp
> should be a symlink to something on the ramdisk as well.
>
> (Kinda off-topic -- anecdotally it feels to me that some queries
> go faster if I put /pgsql_tmp on a different device & disk controller.
> If I verify this I'll post results to perform)
>
>    Ron Mayer
>    rm_pg@cheapcomplexdevices.com

Hi, ron

Sorry, yesterday I was out for working.

Ye, pgsql/data/base is in ramdisk.

I have got to launch my live cd. After resetting pg_xlog,
the pgsql dir is only 80MB (from 200MB).

The requirements to run the live cd are now to 256MB RAM (sigh!!).

Regards

Lucio




^ permalink  raw  reply  [nested|flat] 12+ messages in thread


end of thread, other threads:[~2003-11-21 10:05 UTC | newest]

Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 10:19 Postgresql DB on a live cd Lucio <luke@iond.it>
2003-11-19 19:54 ` Marc G. Fournier <scrappy@postgresql.org>
2003-11-19 20:25   ` Lucio <luke@iond.it>
2003-11-19 20:32   ` Mailer <mail@iond.it>
2003-11-20 08:38 ` Ron Mayer <rm_pg@cheapcomplexdevices.com>
2003-11-20 08:47 ` Ron Mayer <rm_pg@cheapcomplexdevices.com>
2003-11-21 10:05   ` mail@iond.it
2003-11-19 10:33 Postgresql DB on a live cd mail@iond.it
2003-11-19 11:43 ` jtaaribi <jtaaribi@terra.es>
2003-11-19 13:45 ` mail@iond.it
2003-11-19 15:13   ` Greg Spiegelberg <gspiegelberg@cranel.com>
2003-11-19 15:26     ` Mailer <mail@iond.it>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox