pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
"Localizing" paths?
6+ messages / 3 participants
[nested] [flat]

* "Localizing" paths?
@ 2010-07-05 20:16  Tim Landscheidt <tim@tim-landscheidt.de>
  0 siblings, 2 replies; 6+ messages in thread

From: Tim Landscheidt @ 2010-07-05 20:16 UTC (permalink / raw)
  To: pgsql-docs@postgresql.org

Balkrishna Sharma <b_ki@hotmail.com> wrote on -admin:

> Thanks. If I want to do at system-wide level, where do I store the psqlrc file (assuming I want to change the timing behavior system-wide)?
> (CentOS 5, Postgres 8.4)
> $ ./pg_config --sysconfdir/opt/PostgreSQL/8.4/etc/postgresql
> But I don't have /opt/PostgreSQL/8.4/etc/postgresql directory. Just creating the directory and putting a psqlrc file over there does not seem to work.
> [...]

This got me wondering: With the 8.4 RPMs, in psql's man
page, there is an unexplained
"*PREFIX*/share/psqlrc.sample"; the sample psqlrc installed
in /usr/share/pgsql/psqlrc.sample (sic!) says:

| --  Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and
| --  rename it psqlrc.

Would it be feasible and desirable to "localize" the paths
in the configure stage? Pro: Fewer guesses by new users.
Con: Adds another level of complexity to the build system.

Tim




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: "Localizing" paths?
@ 2010-07-06 00:08  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Tim Landscheidt <tim@tim-landscheidt.de>
  1 sibling, 1 reply; 6+ messages in thread

From: Tom Lane @ 2010-07-06 00:08 UTC (permalink / raw)
  To: Tim Landscheidt <tim@tim-landscheidt.de>; +Cc: pgsql-docs@postgresql.org

Tim Landscheidt <tim@tim-landscheidt.de> writes:
> Would it be feasible and desirable to "localize" the paths
> in the configure stage? Pro: Fewer guesses by new users.
> Con: Adds another level of complexity to the build system.

The bigger "con" is that anyone reading the docs on-line would be
given information that might be inappropriate for their platform.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: "Localizing" paths?
@ 2010-07-06 12:53  Tim Landscheidt <tim@tim-landscheidt.de>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 6+ messages in thread

From: Tim Landscheidt @ 2010-07-06 12:53 UTC (permalink / raw)
  To: pgsql-docs@postgresql.org

Tom Lane <tgl@sss.pgh.pa.us> wrote:

>> Would it be feasible and desirable to "localize" the paths
>> in the configure stage? Pro: Fewer guesses by new users.
>> Con: Adds another level of complexity to the build system.

> The bigger "con" is that anyone reading the docs on-line would be
> given information that might be inappropriate for their platform.

Why? That would only be the case if the on-line docs were
copied verbatim from some developer's working directory (or
a buildfarm box). I don't know the current workflow, but it
shouldn't be a problem to "./configure --host=DOC-DUMMY &&
make www-install".

  The biggest con I see is with the generation. If I under-
stood the discussion on the diagrams correctly, the tar
balls for the packagers have the documentation already done,
so the generation of the docs would either have to be pushed
to a later stage, or the users of packages wouldn't have any
benefit at all.

  So, looking at the pro: Shelved it.

Tim




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: "Localizing" paths?
@ 2010-07-06 14:25  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Tim Landscheidt <tim@tim-landscheidt.de>
  0 siblings, 1 reply; 6+ messages in thread

From: Tom Lane @ 2010-07-06 14:25 UTC (permalink / raw)
  To: Tim Landscheidt <tim@tim-landscheidt.de>; +Cc: pgsql-docs@postgresql.org

Tim Landscheidt <tim@tim-landscheidt.de> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The bigger "con" is that anyone reading the docs on-line would be
>> given information that might be inappropriate for their platform.

> Why? That would only be the case if the on-line docs were
> copied verbatim from some developer's working directory (or
> a buildfarm box).

They have to be built *somewhere* ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: "Localizing" paths?
@ 2010-07-06 15:00  Tim Landscheidt <tim@tim-landscheidt.de>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tim Landscheidt @ 2010-07-06 15:00 UTC (permalink / raw)
  To: pgsql-docs@postgresql.org

Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Tim Landscheidt <tim@tim-landscheidt.de> writes:
>> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> The bigger "con" is that anyone reading the docs on-line would be
>>> given information that might be inappropriate for their platform.

>> Why? That would only be the case if the on-line docs were
>> copied verbatim from some developer's working directory (or
>> a buildfarm box).

> They have to be built *somewhere* ...

That's why the paragraph read:

| Why? That would only be the case if the on-line docs were
| copied verbatim from some developer's working directory (or
| a buildfarm box). I don't know the current workflow, but it
| shouldn't be a problem to "./configure --host=DOC-DUMMY &&
| make www-install".

Tim




^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: "Localizing" paths?
@ 2010-07-06 15:36  Peter Eisentraut <peter_e@gmx.net>
  parent: Tim Landscheidt <tim@tim-landscheidt.de>
  1 sibling, 0 replies; 6+ messages in thread

From: Peter Eisentraut @ 2010-07-06 15:36 UTC (permalink / raw)
  To: Tim Landscheidt <tim@tim-landscheidt.de>; +Cc: pgsql-docs@postgresql.org

On mån, 2010-07-05 at 20:16 +0000, Tim Landscheidt wrote:
> Would it be feasible and desirable to "localize" the paths
> in the configure stage? Pro: Fewer guesses by new users.
> Con: Adds another level of complexity to the build system.

The documentation is shipped pre-built in the source tarball.  So other
than with a sed, we can't really change it to match local situations.




^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2010-07-06 15:36 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-07-05 20:16 "Localizing" paths? Tim Landscheidt <tim@tim-landscheidt.de>
2010-07-06 00:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2010-07-06 12:53   ` Tim Landscheidt <tim@tim-landscheidt.de>
2010-07-06 14:25     ` Tom Lane <tgl@sss.pgh.pa.us>
2010-07-06 15:00       ` Tim Landscheidt <tim@tim-landscheidt.de>
2010-07-06 15:36 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox