473,569 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PostgreSQL, GnuCash

Would PostgreSQL be a good enough choise for GnuCash (or Quickbooks or
the likes) type of program?
What could be the potential drawbacks of using PostgreSQL (perhaps its
big size)?
What would be a better database for that kind of job?

Kaarel

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #1
8 4146
Kaarel wrote:
Would PostgreSQL be a good enough choise for GnuCash (or Quickbooks
or the likes) type of program?
I believe GnuCash runs on PostgreSQL, so yes.
What could be the potential drawbacks of using PostgreSQL (perhaps
its big size)?
I don't think so.
What would be a better database for that kind of job?


None. :-)

--
Peter Eisentraut
http://developer.postgresql.org/~petere/
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #2
Quoth ka****@future.e e (Kaarel):
Would PostgreSQL be a good enough choise for GnuCash (or Quickbooks
or the likes) type of program? What could be the potential
drawbacks of using PostgreSQL (perhaps its big size)? What would be
a better database for that kind of job?


The main plausible drawbacks to using PostgreSQL are that:

a) It introduces some "system administration burdens," if you're
not careful.

b) It runs as a separate server process, which has some performance
costs in comparison with "embedded" database systems like
Berkeley-DB or SQLite.

If PostgreSQL seems to be somehow "too expensive," then you have
essentially two choices: Berkeley-DB and SQLite.

MySQL is _not_ smaller, and does _not_ introduce any less in the way
of "sysadmin burdens," so it doesn't provide meaningfully better
answers for those issues.

What PostgreSQL "buys you" that none of the other three database
systems mentioned is the capability to have the database strongly
enforce Way Lots of aspects of data integrity. Comparing...

-> If you try to store an invalid date, PostgreSQL will reject it.
-> In contrast, the other 3 DBs do no meaningful validation of
input.

For a financial application, you want a fixed-point decimal numeric
type so that you can be confident that it is calculating values
correctly.

-> PostgreSQL provides NUMERIC(SIZE,DE CIMALS) that deals with this
nicely, and which never imposes floating point round-off errors on
you.

-> Berkeley-DB has no way to express data types; data is merely
a payload, so you'll implement whatever type you choose,
and if you're working in C or C++, that probably won't be a
BCD-like numeric type.

-> SQLite does not impose any data type constraints, and stores
non-integer values as floating point values, which will not
calculate correct values for financial transactions.

sqlite> create table accounts (name text, balance numeric(10,2));
sqlite> insert into accounts values ('chris', 27.50);
sqlite> insert into accounts values ('dave', '28.751');
sqlite> insert into accounts values ('brad', '29');
sqlite> insert into accounts values ('doug', '29.99999');
sqlite> select * from accounts;
chris|27.50
dave|28.751
brad|29
doug|29.99999
sqlite> select sum(balance) from accounts;
115.25099

-> MySQL does appear to have a "numeric" type that can store
rows correctly, but it then breaks if you ask it to do aggregates,
as it collects them into a floating point variable. Oops.

I'm quite prepared to trust PostgreSQL with financial numbers; none of
the other options are at all acceptable for that purpose.
--
select 'cbbrowne' || '@' || 'cbbrowne.com';
http://www.ntlug.org/~cbbrowne/postgresql.html
"If you spend more on coffee than on IT security, then you will be
hacked." -- Richard Clarke

Nov 23 '05 #3
Oops! ka****@future.e e (Kaarel) was seen spray-painting on a wall:
What could be the potential drawbacks of using PostgreSQL (perhaps its
big size)?


"Big size" seems an unlikely thing to actually be true.

Contrary to popular misconceptions, MySQL is certainly _not_ smaller
than PostgreSQL. The source tarball for the "production release" of
the former is 13.2MB in size, whereas PostgreSQL 7.4.3 weighs in,
lately, at 12.1MB.

Measuring it as binary installs:

- Installing PostgreSQL on Debian requires adding a 9.8MB package.
- Installing MySQL on Debian requires adding several packages adding
up to (+ 8.7 0.2 1.0 0.6), or roughly 10.3MB.
- Installing FireBird2 requires (+ 2.2 0.7 2.4 1.8) or about 7.1MB.

(This according to my firewall box that has no databases running on
it...)

Seeing as how there's quite a bit more functionality in PostgreSQL,
you've got to wonder why MySQL is so bloated...
--
If this was helpful, <http://svcs.affero.net/rm.php?r=cbbrow ne> rate me
http://www.ntlug.org/~cbbrowne/spreadsheets.html
"Everyone likes flattery, and when you come to Royalty, you should lay
it on with a thick trowel." -- Benjamin Disraeli on Queen Victoria
Nov 23 '05 #4
Christopher Browne <cb******@acm.o rg> wrote in message news:<m3******* *****@wolfe.cbb rowne.com>...

-> SQLite does not impose any data type constraints, and stores
non-integer values as floating point values, which will not
calculate correct values for financial transactions.


This is very true. For a financial applications in SQLite you would be
well advised to store all quantities as an integer number of cents
and shift the decimal point in the application itself. SQLite version 3.0
uses a 64-bit integer so overflow shouldn't be a problem.
Nov 23 '05 #5

On Aug 1, 2004, at 6:26 PM, Christopher Browne wrote:
Measuring it as binary installs:

- Installing PostgreSQL on Debian requires adding a 9.8MB package.
- Installing MySQL on Debian requires adding several packages adding
up to (+ 8.7 0.2 1.0 0.6), or roughly 10.3MB.
- Installing FireBird2 requires (+ 2.2 0.7 2.4 1.8) or about 7.1MB.


I compiled PostgreSQL on Mac OS X with optimization -Os (for size) and
the resulting installation was less than 2 MB. I am looking to embed it
in applications to reduce administrative effort, so size matters in my
case.

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 23 '05 #6
At 08:01 AM 8/2/2004 -0400, Aaron Burghardt wrote:
I compiled PostgreSQL on Mac OS X with optimization -Os (for size) and the
resulting installation was less than 2 MB. I am looking to embed it in
applications to reduce administrative effort, so size matters in my case.


2MB? That's smaller than some CPUs 2nd level caches. Hmmm. Wonder what's
the perfomance of -Os like compared to the others.
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #7
ab****@mac.com (Aaron Burghardt) wrote in message news:<A5******* *************** ************@ma c.com>...
On Aug 1, 2004, at 6:26 PM, Christopher Browne wrote:
Measuring it as binary installs:

- Installing PostgreSQL on Debian requires adding a 9.8MB package.
- Installing MySQL on Debian requires adding several packages adding
up to (+ 8.7 0.2 1.0 0.6), or roughly 10.3MB.
- Installing FireBird2 requires (+ 2.2 0.7 2.4 1.8) or about 7.1MB.


I compiled PostgreSQL on Mac OS X with optimization -Os (for size) and
the resulting installation was less than 2 MB. I am looking to embed it
in applications to reduce administrative effort, so size matters in my
case.


If size matters, SQLite weighs in at less than 250KB when compiled for
size.
Nov 23 '05 #8
On Mon, 2004-08-02 at 08:01, Aaron Burghardt wrote:

On Aug 1, 2004, at 6:26 PM, Christopher Browne wrote:
Measuring it as binary installs:

- Installing PostgreSQL on Debian requires adding a 9.8MB package.
- Installing MySQL on Debian requires adding several packages adding
up to (+ 8.7 0.2 1.0 0.6), or roughly 10.3MB.
- Installing FireBird2 requires (+ 2.2 0.7 2.4 1.8) or about 7.1MB.


I compiled PostgreSQL on Mac OS X with optimization -Os (for size) and
the resulting installation was less than 2 MB. I am looking to embed it
in applications to reduce administrative effort, so size matters in my
case.


That sounds small, but you don't seem to be accounting for size used by
initdb and WAL to actually get a working system...

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #9

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

Similar topics

1
2162
by: Otis Green | last post by:
Vote for or against a new newsgroup proposal. To summarize what you need to do, just send an empty e-mail to postgresql-ballot@netagw.com You will receive a ballot by e-mail. Follow the instructions and vote. _______________________________________________________________________ FIRST CALL FOR VOTES (of 2)
0
1180
by: Somesh Bartakkay | last post by:
GnuCash -- popular accounting s/w is developed with c+Gtk+XML. if i wanna develope application like gnuCash which handles flat file database :: 1.weather it is wise decision to develope in python ? which is prefered GUI from wxPython, PyGTK ? and Why ? Shall i code wxPython in FUNCTIONAL programming way(nON Object oriented) ? 2.weather...
0
3840
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no problem: EXEC sp_droplinkedsrvlogin @rmtsrvname = 'PostgreSQL', @locallogin = NULL GO EXEC sp_DropServer 'PostgreSQL' GO
0
2165
by: Bill J. | last post by:
I have to update a PostgreSQL linked server through MSSQL2K. I first configured the connection with ODBC as follows and I can do queries with no problem: EXEC sp_droplinkedsrvlogin @rmtsrvname = 'PostgreSQL', @locallogin = NULL GO EXEC sp_DropServer 'PostgreSQL' GO
0
1656
by: ruhunu Gamarala | last post by:
Hi, I get the following exception periodically. does anybody what is the reason for it to throw this exception? I really appriciate if anyone can help me on this. thanks, Chinthaka at org.postgresql.PG_Stream.flush(PG_Stream.java:356) at org.postgresql.core.QueryExecutor.sendQuery(QueryExecutor.java:159) at...
26
10785
by: jini us | last post by:
Hi, I am starting a new project where I intend to use embedded database server in my win32 application. I intend to use VC++ microsoft studio 6.0 as my development environment. The postgres.org website seems to be catering for people with all sorts of requirements and platforms.
0
1829
by: greg | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is a PGP-signed copy of the checksums for PostgreSQL version 7.4. The latest copy of the checksums for this and other versions, as well as information on how to verify the files you download for yourself, can be found at:
1
1110
by: phil campaigne | last post by:
On Mon, 1 Mar 2004, phil campaigne wrote: >> Nigel J. Andrews wrote: >> > > >>> >On Mon, 1 Mar 2004, Phil Campaigne wrote: >>> > >>> >
0
1641
by: Greg Sabino Mullane | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This is a PGP-signed copy of the checksums for following PostgreSQL versions: 7.4.5 7.4.4 7.3.7
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7672
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6283
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.