1 |
We're running postgresql in a prefix on MacOS just fine. Some systems are |
2 |
stable, some are 8.3.1, but when I just went to install 8.3.1 again I was |
3 |
unable to run initdb due to some problem with $libdir. I didn't know about |
4 |
the differences between postgresql, postgresql-server, etc, and will look |
5 |
into this. I was using postgresql and libpq. |
6 |
|
7 |
Otherwise, it runs just fine. If I get tired of forgetting to start my |
8 |
database server at boot some day I might make a launchd thingie for it. |
9 |
|
10 |
P |
11 |
|
12 |
On Thu, Aug 21, 2008 at 2:39 PM, Rabbe Fogelholm <rabbe@×××××××.se> wrote: |
13 |
|
14 |
> Matt Michalowski wrote: |
15 |
> |
16 |
>> rabbe@×××××××.se wrote: |
17 |
>> |
18 |
>>> Does anyone know, would it be practical to run an SQL server of some |
19 |
>>> variety in Prefix Portage? It would be for prototyping only. |
20 |
>>> |
21 |
>>> Let me state at once that I have little experience with databases. I did |
22 |
>>> run mysql on native Gentoo for some time though, with no problems. |
23 |
>>> |
24 |
>>> I see that there are things like postgresql and sqlite in the prefix |
25 |
>>> tree. |
26 |
>>> Did anyone try them out? |
27 |
>>> |
28 |
>>> And what is the difference between the postgresql-server and postgresql |
29 |
>>> packages? Different packagings of the same server? (I see now that there |
30 |
>>> is a Gentoo guide and it says `emerge postgresql' very early on..) |
31 |
>>> |
32 |
>>> Rabbe Fogelholm |
33 |
>>> |
34 |
>>> |
35 |
>>> |
36 |
>>> |
37 |
>> As Fabian (MonetDB? :)) has mentioned, it is possible. I'm having some |
38 |
>> troubles with eselect-postgresql (see bug #232701) at the moment, but it's |
39 |
>> not too hard to get set up. |
40 |
>> |
41 |
>> AFAIK the difference between postgresql and postgresql-server is that |
42 |
>> postgresql-server is a newer replacement for postgresql, yet postgresql |
43 |
>> hasn't been retired yet. Likewise, dev-db/postgresql-base is a replacement |
44 |
>> for dev-db/libpq (but has the psql client, etc.) |
45 |
>> |
46 |
>> Here's an example of how you can get by without init scripts: |
47 |
>> - create a directory somewhere to hold your database + configs, ie. |
48 |
>> ~/pgdata |
49 |
>> - run the initdb tool, which sets up the default config + database: |
50 |
>> # initdb -D ~/pgdata |
51 |
>> |
52 |
>> - start the server |
53 |
>> # pg_ctl -D ~/pgdata -l ~/pgdata/logfile start |
54 |
>> |
55 |
>> - check the server is running |
56 |
>> # psql -l |
57 |
>> |
58 |
>> - stop the server |
59 |
>> # pg_ctl -D ~/pgdata stop |
60 |
>> |
61 |
>> |
62 |
>> Matt. |
63 |
>> |
64 |
> |
65 |
> Which one of the two (postgresql or postgresql-server) should I look at? |
66 |
> Performance is not an issue; easy setup is more important. |
67 |
> |
68 |
> --Rabbe |
69 |
> |
70 |
> |