<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Как поставить БД postgres в нужную директорию]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=30905&amp;type=atom" />
	<updated>2013-10-09T12:32:28Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=30905</id>
		<entry>
			<title type="html"><![CDATA[Re: Как поставить БД postgres в нужную директорию]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=368802#p368802" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>trom пишет:</cite><blockquote><p>база ставится в<br />/var/lib/pgsql/9.2</p><p>А надо чтобы ставилась в<br />/var/lib/pgsql/</p><p>как это сделать что указать при установке ?</p></blockquote></div><p>ну как вариант: <br /></p><div class="codebox"><pre><code> 
su - postgres -c &quot;initdb -D /path/to/pgdata&quot;</code></pre></div><p>или<br />это изменить путь к БД. в файле /etc/init.d/postgresql-9.2<br /></p><div class="codebox"><pre><code>PGDATA=/path_to_pgdata
PGLOG=/path_to_pgdata/pgstartup.log
# Log file for pg_upgrade
PGUPLOG=/path_to_pgdata/$PGMAJORVERSION/pgupgrade.log</code></pre></div><p>Ну и выполнить /etc/init.d/postgresql-9.2 initdb<br />Не забываем постаивть пермишины на каталог chown -R postgres. /path_to_pgdata</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-10-09T12:32:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=368802#p368802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как поставить БД postgres в нужную директорию]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=368799#p368799" />
			<content type="html"><![CDATA[<p>Понятия не имею. Обратитесь в поддержку ISP Manager, может они подскажут.<br />Тем более фраза &quot;ничего не запустилось&quot; не говорит вообще ни о чем. На такую фразу можно ответить только - &quot;настройте правильно&quot;</p>]]></content>
			<author>
				<name><![CDATA[alexfinn]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25867</uri>
			</author>
			<updated>2013-10-09T12:06:28Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=368799#p368799</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как поставить БД postgres в нужную директорию]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=368781#p368781" />
			<content type="html"><![CDATA[<p><strong>alexfinn</strong>, <br />спасибо но не помогло, опишу задачу подробнее</p><p>Нужно поставить новый постгрес 9.2 или 9.3 версии в папку старого 8.4 версии на CentOS 6.4<br />Это нужно потому что ISP manager Lite установленный на сервере из своей панели может поставить только версию 8.4, а чтобы получить современную версию, нужно ставить новую версию поверх старой.</p><p>поставил новый постгрес 9.2 (как описал в первом посте)<br />потом удалил папку data с базой данных 8.4<br />и изменил в postgresql.conf базы 9.2 data_directory на новую папку /var/lib/pgsql/ где теперь должна быть база 9.2 и была 8.4</p><p>Но ничего не запустилось.</p><p>Дайте плз инструкцию как это можно сделать ?</p>]]></content>
			<author>
				<name><![CDATA[trom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31804</uri>
			</author>
			<updated>2013-10-09T10:17:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=368781#p368781</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Как поставить БД postgres в нужную директорию]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=368531#p368531" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>In addition to the <strong>postgresql.conf</strong> file already mentioned, PostgreSQL uses two other manually-edited configuration files, which control client authentication (their use is discussed in Chapter 19). By default, all three configuration files are stored in the database cluster&#039;s data directory. The parameters described in this section allow the configuration files to be placed elsewhere. (Doing so can ease administration. In particular it is often easier to ensure that the configuration files are properly backed-up when they are kept separate.)</p><p><strong>data_directory (string)</strong><br /><em>Specifies the directory to use for data storage. This parameter can only be set at server start.</em></p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[alexfinn]]></name>
				<uri>https://linuxforum.ru/profile.php?id=25867</uri>
			</author>
			<updated>2013-10-08T14:38:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=368531#p368531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Как поставить БД postgres в нужную директорию]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=368521#p368521" />
			<content type="html"><![CDATA[<p>Система CentOS 6.4</p><p>Ставлю БД таким образом<br /></p><div class="codebox"><pre><code># wget http://yum.pgrpms.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
# rpm -ivh pgdg-centos92-9.2-6.noarch.rpm
# yum install postgresql92 postgresql92-server</code></pre></div><p>база ставится в<br />/var/lib/pgsql/9.2</p><p>А надо чтобы ставилась в<br />/var/lib/pgsql/</p><p>как это сделать что указать при установке ?</p>]]></content>
			<author>
				<name><![CDATA[trom]]></name>
				<uri>https://linuxforum.ru/profile.php?id=31804</uri>
			</author>
			<updated>2013-10-08T14:18:06Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=368521#p368521</id>
		</entry>
</feed>
