Re: Question on postgresql.conf

2018-08-01 Thread Steven Lembark
On Tue, 31 Jul 2018 00:02:47 -0500 (PET) Alvaro Aguayo Garcia-Rada wrote: > Hi. > > As far as I know, it's not currently possible. Maybe recompiling, but > that could not be the best for production environment. I suppose this > is this way becuase postgres is designed to expect a certain folder

Re: Question on postgresql.conf

2018-07-31 Thread Dimitri Maziuk
On 07/31/2018 01:16 PM, George Neuner wrote: > > I understand the problem with network shares - but the OP mentioned > only a "shared location", which could be just another directory on the > same device. Because the OP said also that there were other DBMS > being used in the same shop, I consid

Re: Question on postgresql.conf

2018-07-31 Thread George Neuner
On Tue, 31 Jul 2018 12:59:03 -0500, Dimitri Maziuk wrote: >On 07/31/2018 12:33 PM, George Neuner wrote: > >> Is there some reason that postgresql.conf cannot be a link to your >> file? > >It's six of one, half a dozen of the other. The big problem is when the >network share is unavailable at host

Re: Question on postgresql.conf

2018-07-31 Thread Dimitri Maziuk
On 07/31/2018 01:05 PM, Steve Atkins wrote: > You'd do that with "include_dir 'conf.d'" or similar, I think, which > PostgreSQL > has in all current versions. So it does, huh. I guess it helps to read all the way to end of postgresql.conf sometimes... -- Dimitri Maziuk Programmer/sysadmin BioM

Re: Question on postgresql.conf

2018-07-31 Thread Steve Atkins
> On Jul 31, 2018, at 10:59 AM, Dimitri Maziuk wrote: > > On 07/31/2018 12:33 PM, George Neuner wrote: > >> Is there some reason that postgresql.conf cannot be a link to your >> file? > > It's six of one, half a dozen of the other. The big problem is when the > network share is unavailable at

Re: Question on postgresql.conf

2018-07-31 Thread Dimitri Maziuk
On 07/31/2018 12:33 PM, George Neuner wrote: > Is there some reason that postgresql.conf cannot be a link to your > file? It's six of one, half a dozen of the other. The big problem is when the network share is unavailable at host boot and all of your databases are belong to bitbucket. If you wan

Re: Question on postgresql.conf

2018-07-31 Thread George Neuner
On Mon, 30 Jul 2018 18:35:59 +, "Lu, Dan" wrote: >I am going through the PostgreSQL manual and came across a question >hoping you can help me. It appears the "postgresql.conf" file is >needed by default to start Postgres. Since we have standard with >other RDBMS to store the configuratio

Re: Question on postgresql.conf

2018-07-31 Thread Dimitri Maziuk
On 7/31/2018 9:36 AM, Matt Zagrabelny wrote: Or have puppet/chef/ansible/etc. write the correct config file based on your dynamic data. Postgres ain't orrible. I wonder if one actually needs as much host-specific config tuning in the first place... I haven't touched oracle in forever, thoug

Re: Question on postgresql.conf

2018-07-31 Thread Matt Zagrabelny
On Tue, Jul 31, 2018 at 9:21 AM, Tom Lane wrote: > "Lu, Dan" writes: > > Question: > > Can be a variable like `hostname` derived from Unix shell or > I have to hardcode the name of the host like " include > /nfs/global/postgres-host123.cnf > > Nope, you'd have to hard-code it. > > Of course, yo

Re: Question on postgresql.conf

2018-07-31 Thread Tom Lane
"Lu, Dan" writes: > Question: > Can be a variable like `hostname` derived from Unix shell or I > have to hardcode the name of the host like " include > /nfs/global/postgres-host123.cnf Nope, you'd have to hard-code it. Of course, you could have the startup script that you intended to set the

RE: Question on postgresql.conf

2018-07-31 Thread Lu, Dan
arcia-Rada ; pgsql-gene...@postgresql.org Subject: Re: Question on postgresql.conf "Lu, Dan" writes: > Say, I want to put the config file on a share drive so all my postgres > configuration file can be seen in one location. > /nfs/global/postgres-.cnf What I'd do

Re: Question on postgresql.conf

2018-07-31 Thread Tom Lane
"Lu, Dan" writes: > Say, I want to put the config file on a share drive so all my postgres > configuration file can be seen in one location. > /nfs/global/postgres-.cnf What I'd do is make each data directory's postgresql.conf contain just this: include /nfs/global/postgres-.cnf and then just

RE: Question on postgresql.conf

2018-07-31 Thread Lu, Dan
day, July 31, 2018 7:28 AM To: 'David G. Johnston' ; Alvaro Aguayo Garcia-Rada Cc: pgsql-gene...@postgresql.org Subject: RE: Question on postgresql.conf Hi David, Which command? Can you give me an example? Say, I want to put the config file on a share drive so all my postgres con

Re: Question on postgresql.conf

2018-07-31 Thread Fabio Pardi
cnf > >   > >   > > *From:*David G. Johnston [mailto:david.g.johns...@gmail.com] > *Sent:* Tuesday, July 31, 2018 1:48 AM > *To:* Alvaro Aguayo Garcia-Rada > *Cc:* pgsql-gene...@postgresql.org; Lu, Dan > *Subject:* Re: Question on postgresql.conf > >   > >

RE: Question on postgresql.conf

2018-07-31 Thread Lu, Dan
/postgres-machine3.cnf From: David G. Johnston [mailto:david.g.johns...@gmail.com] Sent: Tuesday, July 31, 2018 1:48 AM To: Alvaro Aguayo Garcia-Rada Cc: pgsql-gene...@postgresql.org; Lu, Dan Subject: Re: Question on postgresql.conf On Monday, July 30, 2018, Alvaro Aguayo Garcia-Rada mailto:aagu

Re: Question on postgresql.conf

2018-07-30 Thread David G. Johnston
On Monday, July 30, 2018, Alvaro Aguayo Garcia-Rada wrote: > > As far as I know, it's not currently possible. > That would be incorrect, you just need to change server startup commands. https://www.postgresql.org/docs/10/static/runtime-config-file-locations.html David J.

RE: Question on postgresql.conf

2018-07-30 Thread Alvaro Aguayo Garcia-Rada
Hi. As far as I know, it's not currently possible. Maybe recompiling, but that could not be the best for production environment. I suppose this is this way becuase postgres is designed to expect a certain folder structure for it's data folder, and configuration files are considered part of it.

Question on postgresql.conf

2018-07-30 Thread Lu, Dan
Hello PostgreSQL Support Admin, My name is Dan Lu. I am fairly new to PostgreSQL. I have experience working with Oracle/MySQL database. I am going through the PostgreSQL manual and came across a question hoping you can help me. It appears the "postgresql.conf" file is needed by default to s