pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Erik Wienhold <ewie@ewie.name>
To: Bruce Momjian <bruce@momjian.us>
To: Kirk Parker <khp@equatoria.us>
Cc: pbaumard@gmail.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Change "two" to "three" for decades of development in history
Date: Fri, 23 Jun 2023 03:17:26 +0200 (CEST)
Message-ID: <221510448.1356631.1687483046344@office.mailbox.org> (raw)
In-Reply-To: <ZJS2gHelFEZ242BC@momjian.us>
References: <168724660637.399156.7642965215720120947@wrigleys.postgresql.org>
	<ZJOGAnP9DoI0q25r@momjian.us>
	<CANwZ8rk_0AOobLUx4aBAX_wyWjzSAB=vcSUbGCirfg20BdY_4g@mail.gmail.com>
	<ZJS2gHelFEZ242BC@momjian.us>

> On 22/06/2023 23:00 CEST Bruce Momjian <bruce@momjian.us> wrote:
>
> On Thu, Jun 22, 2023 at 01:47:16PM -0700, Kirk Parker wrote:
> >
> > I don't suppose DocBook has macro and system-variable capabilities? That
> > could provide a set-and-forget solution to this?
>
> Uh, I am not aware of any.

An SGML entity [0] or an xsltproc stringparam [1] looks viable.  Question is
how to calculate the number of decades in the Makefile.  It's trivial in SQL :)

	=# select extract(decade from now()) - extract(decade from date '1986-01-01');
	 ?column?
	----------
	        4
	(1 row)
	
	=# select extract(day from now() - date '1986-01-01') / 365.25 / 10;
	      ?column?
	--------------------
	 3.7472963723477071
	(1 row)

[0] https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/Makefile;h=71cbef230f34a6a...
[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=doc/src/sgml/Makefile;h=71cbef230f34a6a...

--
Erik





view thread (11+ messages)  latest in thread

Message-ID: <221510448.1356631.1687483046344@office.mailbox.org>
Permalink:  ../221510448.1356631.1687483046344@office.mailbox.org/
Also on:    postgresql.org/message-id/221510448.1356631.1687483046344@office.mailbox.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: ewie@ewie.name, bruce@momjian.us, khp@equatoria.us, pbaumard@gmail.com, pgsql-docs@lists.postgresql.org
  Subject: Re: Change "two" to "three" for decades of development in history
  In-Reply-To: <221510448.1356631.1687483046344@office.mailbox.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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