[Slackbuilds-users] Postgresql default data dir

Sebastian Arcus s.arcus at open-t.co.uk
Sat Jul 2 08:34:07 UTC 2016


On 02/07/16 08:57, Eugen Wissner wrote:
> I don't think it is different than Gentoo or Ubuntu. /usr/share is only
> for documentation, samples and some other stuff.
> Data dir in the sense of the directory where the databases are kept, is
> the home directory of the postgres user, default /var/lib/pgsql.
>
> Look for "# base database directory" comment in the build script.
Hi Eugene. You are right - thank you. I saw the --datarootdir and 
--datadir options during the configure step - I didn't realise that they 
are not the database data dirs, but other static data dirs. A bit 
confusing! Thanks again.

>
> Eugene.
>
> Am Samstag, den 02.07.2016, 08:27 +0100 schrieb Sebastian Arcus:
>> I note that using the SBo script, the default data dir for PostgreSQL
>> is
>> set under /usr/share. The default PostgreSQL data dir (if not set)
>> is
>> under /usr/local. I always thought that the aim is to have
>> non-changeable files under /usr (or rarely changeable). Even Gentoo
>> and
>> Ubuntu have it under /var/lib. I was wondering if the SBo script
>> shouldn't attempt to follow the same sane path and have it under
>> something like /var/lib or /srv or something?
>> _______________________________________________
>> SlackBuilds-users mailing list
>> SlackBuilds-users at slackbuilds.org
>> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
>> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
>> FAQ - http://slackbuilds.org/faq/
>>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - http://slackbuilds.org/faq/
>



More information about the SlackBuilds-users mailing list