agora inbox for postgres@postgres.berkeley.edu  
help / color / mirror / Atom feed
createdb in libpq
2+ messages / 2 participants
[nested] [flat]

* createdb in libpq
@ 1994-07-28 08:41  Bernd Froehlich <bfroehli@AWI-Bremerhaven.DE>
  0 siblings, 1 reply; 2+ messages in thread

From: Bernd Froehlich @ 1994-07-28 08:41 UTC (permalink / raw)
  To: legacy

Is it somehow possible to create a new database from inside a C-program?

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



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

* Re: createdb in libpq
@ 1994-07-28 18:46  Paul M. Aoki <aoki@CS.Berkeley.EDU>
  parent: Bernd Froehlich <bfroehli@AWI-Bremerhaven.DE>
  0 siblings, 0 replies; 2+ messages in thread

From: Paul M. Aoki @ 1994-07-28 18:46 UTC (permalink / raw)
  To: Bernd Froehlich <bfroehli@AWI-Bremerhaven.DE>; +Cc: legacy

bfroehli@AWI-Bremerhaven.DE (Bernd Froehlich) writes:
> Is it somehow possible to create a new database from inside a C-program?

the trivial way is to run the usual "createdb" script using system(3)
or popen(3) or something.

the almost-as-trivial way is to look at the createdb script and do what 
it does -- attach to template1, and run a "createdb" query.
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================



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


end of thread, other threads:[~1994-07-28 18:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-07-28 08:41 createdb in libpq Bernd Froehlich <bfroehli@AWI-Bremerhaven.DE>
1994-07-28 18:46 ` Paul M. Aoki <aoki@CS.Berkeley.EDU>

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