473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ideal postgresql install

Is there a guide to build an 'ideal' postgresql server?
By ideal I mean the ideal to set up the postgresql server for a
production environment.
Stuff like separating log files on separate disks and other "Best
Practices".
Thank you!

~ Troy Campano ~

Nov 23 '05 #1
1 1367
On Mon, 10 May 2004, Campano, Troy wrote:
Is there a guide to build an 'ideal' postgresql server?
By ideal I mean the ideal to set up the postgresql server for a
production environment.
Stuff like separating log files on separate disks and other "Best
Practices".


Unfortunately, there is no one best way. It really depends on just what
you're trying to accomplish. If you're building an OLAP database, you're
gonna do things differently than if you're gonna built an OLTP machine.

For certain storage arrays, there's no advantage whatsoever in trying to
partition out logs from data and indexes etc...

However, there are some absolute dos and don'ts that usually apply:

Don't turn off fsync unless you can reproduce all the data in the database
easily. fsync off is dangerous.

Don't use IDE drives with write caching enabled, at least for now, as they
seem to lie about fsyncing. I.e. using an IDE with write cache enabled is
pretty much functionally equivalent to turning off fsync. Only you might
THINK you have a reliable storage system because you've got fsync on.

RAID arrays are much faster than individual drives are.

Hardware RAID is usually faster at writing data than software arrays,
especially if you use battery backed cache.

Test your hardware, especially memory, CPU, controllers and drives, very
thoroughly. Any machine I'm putting online gets burnt in running
literally tens of millions of transactions before ever going live.

Don't store your data on a network share. It's generally bad form, and
many network file sharing systems are notoriously unreliable should power
be lost etc...

Worry more about I/O bandwidth, amount of memory, and memory bandwidth, in
that order, than about CPU speed.


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wibawanto | last post by:
Can I install Posgresql on slackware linux? This package doesn't include with slackware. I have visited on postgresql website, but it only for Red Hat linux. Where can I get postgresql for Slack?
1
by: Bill Grigg | last post by:
Gentlemen, I am hoping to be able to use GForge on my windows PC. To that end I have installed: 1. cygwin 2. reinstalled cygwin and selected cygipc, postgreSQL and a few other things 3. PHP...
1
by: NK | last post by:
Trying to install Postgresql 7.3.4 using the Cygwin(the last version) , I followed all the instructions. After typing the "" ./configure "" command, I typed "" make "" (i have installed the GNU...
17
by: Carmen Wai | last post by:
Hello: I would like to know whether there is any different in installing Postgresql on the Linux system with file system of EXT2 or EXT3. I have two machines with idential OS (Red Hat 7.3...
9
by: Wei Wang | last post by:
hi, I just took over a project done by somebody else of some C extension of Postgresql 7.1.3. And now I have to port it to pl/pgsql. The guy who developed it said he didn't get it running under...
1
by: phil campaigne | last post by:
Tom Lane wrote: > phil campaigne <pcampaigne@charter.net> writes: > > >> when I login to linux and check the env's I see: >>...
19
by: Mike Cox | last post by:
Has anyone created something like that for Postgresql? It would be really handy to encrypt credit card numbers and other information so it stays secure. If no one has created anything such as...
6
by: Karl O. Pinc | last post by:
These seem to work. I'm posting them now before I'm done with them before I start messing them up with specifics to my database. Any comment is welcome. However, I've no intention of publishing...
2
by: SmoothJazz | last post by:
Hi All! I am wanting to setup/run PostgreSQL on my server (a SuSE Linux 9.2 distro) but I'm not quite sure which way to go. I have a few books on PostgreSQL but they don't seem to match the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.