473,406 Members | 2,620 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,406 software developers and data experts.

embeding postgre

Hi,

I have a question, because i cannot find any information in online docs
(maybe i'm just blind :P).
I'm want to build application with embedded database, but i also need a
possibility to have one global database, which can be accessed from internet
(ability to synchronize between remote and local/embedded database). I heard
from somone that i could use PostgreSQL, but I cannot find any information
that confirms or denies it. And one more thing, i'm interested only in free
solution ;).
Sorry for if i made some mistakes, english is not my native language.

I'll be appreciate for any information.


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

Nov 22 '05 #1
4 2621
On Fri, 20 Feb 2004, twosk wrote:
Hi,

I have a question, because i cannot find any information in online docs
(maybe i'm just blind :P).
I'm want to build application with embedded database, but i also need a
possibility to have one global database, which can be accessed from internet
(ability to synchronize between remote and local/embedded database). I heard
from somone that i could use PostgreSQL, but I cannot find any information
that confirms or denies it. And one more thing, i'm interested only in free
solution ;).
Sorry for if i made some mistakes, english is not my native language.

I'll be appreciate for any information.


You should probably consider either firebird if you need a "real" database
with locking real transactions and all that, or sqllite if all you need is
a nice fast single user database with a sql interface.

Postgresql is really not suited to embedded applications.

Of course, in 50 years, when embedded applications are running on Star
Trek technology, and Postgresql is a quaint old thing, it might make
sense, but today, most embedded devices having memory in the hundreds of
megabytes designed to have only a few hundred thousand writes to each
memory cell, it's just not a good choice.
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 22 '05 #2
tw***@interia.pl ("twosk") writes:
I have a question, because i cannot find any information in online docs
(maybe i'm just blind :P).
I'm want to build application with embedded database, but i also need a
possibility to have one global database, which can be accessed from internet
(ability to synchronize between remote and local/embedded database). I heard
from somone that i could use PostgreSQL, but I cannot find any information
that confirms or denies it. And one more thing, i'm interested only in free
solution ;).


When people come looking to run PostgreSQL as an 'embedded library,'
embedded inside the application process, they generally get rebuffed,
as this heads in exactly the opposite direction to the design of
PostgreSQL.

It _is_ possible to run PostgreSQL in a "somewhat embedded" mode,
where you embed _control_ over that database fairly deeply into your
application. It runs as a separate process, which would mean you
would retain various capabilities for "network" access.

But few have gotten really interested in that; we usually have other
"fish to fry."

You would presumably need to explain in more detail what you intend,
although there is a concommittant danger that you may specify your own
implementation assumptions as requirements, and prevent there from
being answers.

Be prepared to say "Here's what I anticipate," and risk being
contradicted :-).
--
select 'cbbrowne' || '@' || 'acm.org';
http://cbbrowne.com/info/spiritual.html
State opinions in the syntax of fact: "...as well as the bug in LMFS
where you have to expunge directories to get rid of files....."
-- from the Symbolics Guidelines for Sending Mail
Nov 22 '05 #3
Centuries ago, Nostradamus foresaw when sc***********@ihs.com ("scott.marlowe") would write:
Postgresql is really not suited to embedded applications.


Counterpoint: People tend to think about "embedded" in one of two
ways:

1. Applications using PICs and memory devices with _really_ limited
lifetimes, where the RIGHT answer is probably something like
Sleepycat DB, or perhaps, for persistent data, DJB's "constant
database" (cdb).

Relational systems Need Not Apply; the implementation language
is liable to be one of [8051 assembler|C|Forth], and even SQLite
is likely to be way too big.

This sort of gentle programmer should order Leo Brodie's book
_Thinking Forth_, and see how Forth BLOCKs may be used as a
virtual memory 'database.'

2. They have megabytes of memory, lots of room for the GUI fluff
that they're doing, and want a database that isn't really
'getting in their way.'

In this sort of case, MySQL and SQLite and Firebird propose the
answer that you can "link them in" to your application, and
thereby have data storage embedded in the application.

PostgreSQL is designed in a manner that actively discourages
that particular approach; it wants there to be a separate
"postmaster" process. But I am unconvinced that this means you
_can't_ design the application in a manner where PostgreSQL can
hide alongside, and still "stay mostly out of the way."

Indeed, the fact that PostgreSQL runs as a separate process
seems to me to be an excellent way of "staying out of the way."
In contrast, the need, with "embedded in the same process"
systems, to have things like event loops and the need to start
up the database within your application is anything but "staying
out of the way."

But we don't really know where the O.P. is biasing in preference,
whether there's no memory and no disk, or whether it's just the matter
of "veiling" the presence of the DBMS.
--
output = ("cbbrowne" "@" "cbbrowne.com")
http://cbbrowne.com/info/x.html
Life's a duck, and then you sigh.
Nov 22 '05 #4
Dear twosk
I heard from somone that i could use PostgreSQL, but I cannot find any information
that confirms or denies it.


AFAIK There was a discussion on the same topic in Dec2003 please search
the list and you will geta solution

--
Best Regards,
Vishal Kashyap
Director / Lead Developer,
Sai Hertz And Control Systems Pvt Ltd,
http://saihertz.rediffblogs.com
Jabber IM: vi***********@jabber.org
ICQ : 264360076
-----------------------------------------------
You yourself, as much as anybody in the entire
universe, deserve your love and affection.
- Buddha
---------------
I am usually called as Vishal Kashyap
and my Girlfriend calls me Vishal CASH UP.
Because everyone loves me as Vishal Kashyap
and my Girlfriend loves me as CASH.
___
//\\\
( 0_0 )
----------------o0o-----o0o---------------------
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 22 '05 #5

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

Similar topics

2
by: Jason Tesser | last post by:
I am looking into using PostgreSQL on the backend here. I work for a Bible College. We are putting together a new software package. The database would be on a LInux box but our domain is M$ so we...
0
by: COXJ94 | last post by:
I have these postgre dbs, and I know nothing about them. I do know that I need to migrate them to db2. I've done someresearch and I think pg_dump with extract the ddls from postgre much like...
4
by: Brandon | last post by:
Is there a call redirector available that redirects the calls to the PHP MySql API (mysql_connect etc.) to a Postgre database? This would be very usefull since a lot of PHP Scripts are coded for...
1
by: Pradeep83 | last post by:
Hi Everybody Can anybody help me where i can open source for postgre sql that is compatiable for Soalris 10 OS.and how to install the same after downloading , As I am new to this Database...
4
by: =?iso-8859-1?B?RulybmFz?= | last post by:
Hello all, I'm starting a new project and my boss asked me about "C# + Postgre"... I told him that i will look for some information.. Is there something that I should know, like some bug or...
1
by: nilart | last post by:
Hi, I have an installer application (Installshield) which installs postgre DB programmatically on windows: I have a requirement where postgre DB is expected work after upgrading OS from windows XP...
0
by: Miraj Godha | last post by:
Hi , I want to send array from java program to postgre. For oracle we can achieve it by using: ArrayDescriptor desc = ArrayDescriptor.createDescriptor("TYPE", conn); ARRAY newArray = new...
2
by: dvelst | last post by:
Hi All, I have the following query which was based on a working query in MySQL: (don't be afraid of the size of the query you see below, later on I will concentrate on part of this query) ...
5
by: prajiv | last post by:
Hi, Pls guide me in synchronizing data from PostGre to Cache. i.e if we update in one database the other database must automatically get updated.I dont want to use the Tool ,I need the code for it...
1
by: RRahul | last post by:
Hi, I am a database professional but have never used Postgre. My client was exploring the posiblity of using Postgre instead of Mysql and wnated to know the comments from the community. I waned...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
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
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,...
0
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...

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.