C/C++ access with no postmaster running?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gregory Stone

    C/C++ access with no postmaster running?

    Is there a way from C++ to essentailly use postgresql as an embedded
    database? I have a situation where I'd rather have a postgrtes daemon
    running on my customer's machine except when my client application is up.
    Preferably I'd like to not have to establish a network connection, and
    hence use the daemon at all, to the datbase but just perform queries from
    my c++ code. I've only used postgresql over the net, with a daemon, and
    JDBC which is the traditional method so this is new territory. Can anyone
    point me in the right direction in the docs?

    Thanks in advance for the help.

    -Gregory

    =====
    --
    ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
    Gregory Stone | "Suppose you were an idiot, and suppose you were
    guomo@yahoo.com | a member of congress; but I repeat myself."
    | - Mark Twain
    ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~

    _______________ _______________ ____
    Do you Yahoo!?
    Free Pop-Up Blocker - Get it now


    ---------------------------(end of broadcast)---------------------------
    TIP 4: Don't 'kill -9' the postmaster

  • Jonathan Bartlett

    #2
    Re: C/C++ access with no postmaster running?

    PG only runs as a daemon. However, you can connect over UNIX-domain
    sockets rather than Internet sockets if you want.

    Jon

    On Wed, 3 Dec 2003, Gregory Stone wrote:
    [color=blue]
    > Is there a way from C++ to essentailly use postgresql as an embedded
    > database? I have a situation where I'd rather have a postgrtes daemon
    > running on my customer's machine except when my client application is up.
    > Preferably I'd like to not have to establish a network connection, and
    > hence use the daemon at all, to the datbase but just perform queries from
    > my c++ code. I've only used postgresql over the net, with a daemon, and
    > JDBC which is the traditional method so this is new territory. Can anyone
    > point me in the right direction in the docs?
    >
    > Thanks in advance for the help.
    >
    > -Gregory
    >
    > =====
    > --
    > ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
    > Gregory Stone | "Suppose you were an idiot, and suppose you were
    > guomo@yahoo.com | a member of congress; but I repeat myself."
    > | - Mark Twain
    > ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~
    >
    > _______________ _______________ ____
    > Do you Yahoo!?
    > Free Pop-Up Blocker - Get it now
    > http://companion.yahoo.com/
    >
    > ---------------------------(end of broadcast)---------------------------
    > TIP 4: Don't 'kill -9' the postmaster
    >[/color]


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



    Comment

    Working...