GNU bug report logs -
#30701
[PATCH 0/4] PostgreSQL service changes (add record type, and system test)
Previous Next
Reported by: Christopher Baines <mail <at> cbaines.net>
Date: Sun, 4 Mar 2018 19:12:02 UTC
Severity: normal
Tags: patch
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Tue, 13 Mar 2018 17:37:30 +0000
with message-id <87605z27xh.fsf <at> cbaines.net>
and subject line Re: [bug#30701] [PATCH 1/3] services: Rework the PostgreSQL config file to use a record type.
has caused the debbugs.gnu.org bug report #30701,
regarding [PATCH 0/4] PostgreSQL service changes (add record type, and system test)
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
30701: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30701
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
I was mostly adding the system test, but also ended up reworking the
service so that Shepherd knows about the PID file.
Christopher Baines (4):
services: Rework the PostgreSQL config file to use a record type.
services: Use a external pid file for PostgreSQL.
tests: databases: Add a system test for PostgreSQL.
services: databases: Add postgresql-configuration record exports.
gnu/services/databases.scm | 125 ++++++++++++++++++++++++++++++++++++---------
gnu/tests/databases.scm | 59 +++++++++++++++++++++
2 files changed, 161 insertions(+), 23 deletions(-)
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
[Message part 6 (text/plain, inline)]
Sorry, I made some changes, and merged these patches on the weekend, but
I forgot to reply.
Clément Lassieur <clement <at> lassieur.org> writes:
> Christopher Baines <mail <at> cbaines.net> writes:
>
>> For the default config file representation. This makes it possible to more
>> easily change the configuration file, and have dynamic content. In particular,
>> I'm looking at adding a pid file location to the config file.
>
> ^
> Could you please remove this last sentence (with the pid file)?
Done.
>> * gnu/services/databases.scm (<postgresql-config-file>): New record type.
>> (%default-postgres-config): Remove this, it's been replaced by the
>> configuration file.
>> (<postgresql-configuration>): Alter the default for the config file field.
>> (postgresql-service): Alter the default value for the config-file parameter.
>> ---
>> gnu/services/databases.scm | 86 +++++++++++++++++++++++++++++++++++-----------
>> 1 file changed, 66 insertions(+), 20 deletions(-)
>>
>> diff --git a/gnu/services/databases.scm b/gnu/services/databases.scm
>> index 3ca8f471f..f7d5fffd0 100644
>> --- a/gnu/services/databases.scm
>> +++ b/gnu/services/databases.scm
>> @@ -26,11 +26,20 @@
>> #:use-module (gnu system shadow)
>> #:use-module (gnu packages admin)
>> #:use-module (gnu packages databases)
>> + #:use-module (guix store)
>
> I don't think (guix store) is used. Is it?
It wasn't, I've removed it.
>> #:use-module (guix modules)
>> #:use-module (guix records)
>> #:use-module (guix gexp)
>
> ...
>
>> + `(("log_destination" ,@(with-single-quotes log-destination))
>> + ("hba_file" ,@(with-single-quotes hba-file))
>> + ("ident_file" ,@(with-single-quotes ident-file))
> ^
> Could you please use a shorter name? Like "enclose", so that we won't
> go over 80 columns too easily :-).
I went with quote' as I think that works well.
> Apart from those small things, the three patches LGTM. Thank you
> again!
Thanks for taking a look and for your comments :)
Chris
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 7 years and 123 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.