<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; psql]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=28168&amp;type=atom" />
	<updated>2013-05-08T13:04:10Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=28168</id>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345063#p345063" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Fat-Zer⇓ пишет:</cite><blockquote><p>о чём разговор... ключ -D вообще обязателен при запуске сервера...</p></blockquote></div><p>я вообще то говорил об этом:<br />postgresql initdb -D /path/bal-bla/ , как вариант еще использовать initdb -D /path/bla-bla/</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-05-08T13:04:10Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345063#p345063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345060#p345060" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>i2ks⇓ пишет:</cite><blockquote><p>спорный вопрос, как говорится ни кто не мешает запустить postgresql с ключем -D для инициализации db в другом каталоге.</p></blockquote></div><p>о чём разговор... ключ -D вообще обязателен при запуске сервера...</p><p>а дефолтное положение pg_hba.conf (согластно апстриму) и всех прочих конфигов и базы как раз там, куда указывает -D...<br />для тех, кто не хочет читать доки и тех у кого только один сервер, запускаемый init-скриптами его расположение в /etc/ логичней... в общем то это большинство...</p><p>+ ИМХО в генте это так, потому что защита конфигов от изменения там попроще реализована, чем в debian&#039;е и прочих...</p>]]></content>
			<author>
				<name><![CDATA[Fat-Zer]]></name>
				<uri>https://linuxforum.ru/profile.php?id=11911</uri>
			</author>
			<updated>2013-05-08T12:54:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345060#p345060</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345046#p345046" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yars⇓ пишет:</cite><blockquote><p>В /etc им самое место, а /var для часто изменяемых файлов нужна - базы данных всякие туда класть - самое оно.</p></blockquote></div><p>спорный вопрос, как говорится ни кто не мешает запустить postgresql с ключем -D для инициализации db в другом каталоге.<br />пример:<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh"><br />-bash-4.1$ ps x|grep postmaster|grep -v grep<br />17946 ?&nbsp; &nbsp; &nbsp; &nbsp; S&nbsp; &nbsp; 277:23 /usr/pgsql-9.2/bin/postmaster -p 5432 -D /home/pgsql/9.2/data<br /></div><br />А если мне надо несколько инстансов pgsql? как здесь быть в случае конфигурации? ;-)</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-05-08T12:17:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345046#p345046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345043#p345043" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>i2ks⇓ пишет:</cite><blockquote><p>конфиги отдельно что ли вынесли?</p></blockquote></div><p>Это на совести мейнтейнеров. Как по мне норм</p><div class="quotebox"><cite>yars⇓ пишет:</cite><blockquote><p> а /var для часто изменяемых файлов нужна</p></blockquote></div><p><strong>varIABLE</strong>&nbsp; <img src="https://linuxforum.ru/img/smilies/ay.gif" alt="ay" /></p>]]></content>
			<author>
				<name><![CDATA[CryptSpirit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=232</uri>
			</author>
			<updated>2013-05-08T12:14:23Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345043#p345043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345042#p345042" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>i2ks пишет:</cite><blockquote><p>онфиги отдельно что ли вынесли?</p></blockquote></div><p>В /etc им самое место, а /var для часто изменяемых файлов нужна - базы данных всякие туда класть - самое оно.</p>]]></content>
			<author>
				<name><![CDATA[yars]]></name>
				<uri>https://linuxforum.ru/profile.php?id=22799</uri>
			</author>
			<updated>2013-05-08T12:07:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345042#p345042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345041#p345041" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>CryptSpirit⇓ пишет:</cite><blockquote><p> /etc/postgresql-9.2/pg_hba.conf.</p></blockquote></div><p>конфиги отдельно что ли вынесли?</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-05-08T12:05:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345041#p345041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345034#p345034" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>i2ks⇓ пишет:</cite><blockquote><p>по умолчанию здесь:<br />/var/lib/pgsql/9.x/data/pg_hba.conf</p></blockquote></div><p>Озвучьте ОС. На генте, для 9.2,&nbsp; /etc/postgresql-9.2/pg_hba.conf. В дебиане он в var-е валяется.</p>]]></content>
			<author>
				<name><![CDATA[CryptSpirit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=232</uri>
			</author>
			<updated>2013-05-08T11:26:47Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345034#p345034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345026#p345026" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>antake⇓ пишет:</cite><blockquote><p>Только я не нахожу этот файл)</p></blockquote></div><p>по умолчанию здесь:<br />/var/lib/pgsql/9.x/data/pg_hba.conf</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-05-08T09:47:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345026#p345026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345020#p345020" />
			<content type="html"><![CDATA[<p>Также в postgresql.conf смотрите параметр <br /></p><div class="codebox"><pre><code>listen_addresses = &#039;*&#039; </code></pre></div><p>Он определяет интерфейс на котором будет висеть база.</p>]]></content>
			<author>
				<name><![CDATA[marikk]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20103</uri>
			</author>
			<updated>2013-05-08T08:55:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345020#p345020</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345019#p345019" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>antake пишет:</cite><blockquote><p>Спасибо. Только я не нахожу этот файл)</p></blockquote></div><div class="codebox"><pre><code>find / -type f -name pg_hba.conf</code></pre></div><div class="quotebox"><cite>antake пишет:</cite><blockquote><p>А причем здесь могут быть права доступа?</p></blockquote></div><div class="quotebox"><blockquote><p># TYPE&nbsp; DATABASE&nbsp; &nbsp; &nbsp; &nbsp; USER&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ADDRESS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;METHOD</p><p># &quot;local&quot; is for Unix domain socket connections only<br />local&nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trust<br /># IPv4 local connections:<br />host&nbsp; &nbsp; all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1/32&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trust<br /># IPv6 local connections:<br />host&nbsp; &nbsp; all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;all&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::1/128&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;trust</p></blockquote></div><p>Ключевое поле <strong>ADDRESS</strong></p>]]></content>
			<author>
				<name><![CDATA[CryptSpirit]]></name>
				<uri>https://linuxforum.ru/profile.php?id=232</uri>
			</author>
			<updated>2013-05-08T08:48:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345019#p345019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345016#p345016" />
			<content type="html"><![CDATA[<p>Спасибо. Только я не нахожу этот файл)<br />А причем здесь могут быть права доступа?</p>]]></content>
			<author>
				<name><![CDATA[antake]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29899</uri>
			</author>
			<updated>2013-05-08T08:24:40Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345016#p345016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345013#p345013" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>antake⇓ пишет:</cite><blockquote><p>Подскажите, пожалуйста, что я недопонимаю?</p></blockquote></div><p>смотри настройки pg_hba.conf , там прописываются&nbsp; права доступа.</p>]]></content>
			<author>
				<name><![CDATA[i2ks]]></name>
				<uri>https://linuxforum.ru/profile.php?id=16</uri>
			</author>
			<updated>2013-05-08T08:14:26Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345013#p345013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[psql]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=345008#p345008" />
			<content type="html"><![CDATA[<p>Здравствуйте!</p><p>Я подключаюсь через putty, хост 10.11.5.4, порт 22<br />Затем набираю команду<br /> psql -U postgres -h localhost - рабоает, а команда<br /> psql -U postgres -h 10.11.5.4 - не работает.</p><p>Подскажите, пожалуйста, что я недопонимаю?</p>]]></content>
			<author>
				<name><![CDATA[antake]]></name>
				<uri>https://linuxforum.ru/profile.php?id=29899</uri>
			</author>
			<updated>2013-05-08T07:57:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=345008#p345008</id>
		</entry>
</feed>
