Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2upe-008VaC-0L for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2024 16:00:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t2upb-008owm-Ml for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2024 16:00:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t2upb-008owJ-BT for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2024 16:00:31 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t2upY-0021yq-Or for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2024 16:00:30 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-539f4d8ef66so6266659e87.1 for ; Mon, 21 Oct 2024 09:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729526427; x=1730131227; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=i2+tYeTDGxZgiZYam4q4ij195TtQZaUH7eG87kUIMOQ=; b=ajHjyYJCnbxCqs98Sr9jkpsoEtpOZ+56OohH2DQ4f83TtMw6V/xZtXDXrUzeN3y0pp lJJJxmMW9aTx4uW53HIG/2sdnzNHzNY5ki8nIwjRk6B/np6ZWgdh7dCLKFfODzllWpC8 R7s1R4CYFPdBdlfYLdApm/c2kws7+dgAL6fzWJalKE3UhfYw/2QAtz/YOdTpk3CQ2bfw K5c/rCNa+c8d+oSX+OTyva3pnMQLjyZO9AzxzuDb+PednvFPFDiSfDj6GwDZVdYYK5LC tFAcXaNfsksfeuGvks6fIUyGfKWRRcDCosmM3tBYqGLC51Arb+rT9IQHlRDq0q71ONSq 3wBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729526427; x=1730131227; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i2+tYeTDGxZgiZYam4q4ij195TtQZaUH7eG87kUIMOQ=; b=Q9Z6cJ2psk8CJWpaFHNpVZT7g8EivoifwCOaLb10dg58EuWb6/h1xYb2yBfyYuU+Z8 YKtlM0ilx3k0ANKn9NtW4FTDICjBF0Ku4prBp6v23D57Pyih+MuojocLv+JDlB02Pass cmCTa8Gk+kpy/zZX4w2Agu97177Bl4SQO2woCBcRcGqJGhz4oKGnutBHIxFxPhcuYYBJ N3/nNJ1oEmf+qNUzltca7joQZjCTzEZJVJ7G5fBD6bcqnZwy4IumIQPy9lU4ukNlg7wD j6MHXgLm+P3HFyYCny5qYADxztQbuUqw/bWgAebLuymAafhIUdMkJ3CwKOBWi1lf+O2l CLsw== X-Forwarded-Encrypted: i=1; AJvYcCWRwzOcgbOD0/6Klw0mSnoKiKhIORNY5WvYLZEvuONP97o3kiNLpxjYu3ydwKUQhk8vG/hTCk90J8YtWB71@lists.postgresql.org X-Gm-Message-State: AOJu0YwOs32Bnc3RCXFwfqsnWG34qdhawJQ6/6/vfhxcKHhnBVuwijUU zfL6M4gcrOXdxg4KdWI80vGmqO0btmbsdjx4EfY2IAJDDwqpNeXtQzt4t8dTHi0cuQnmKrY0bcJ QIO656TBTmK6arIqK00cfO7JbfBU= X-Google-Smtp-Source: AGHT+IEPt1O86JWNyscOLUGsqICE3LiIzDPxB7TjtnMEeKMKzr7EpYxQnaskEkbO2KP5cK7T941yaJ20ziS90vNX9tY= X-Received: by 2002:a05:6512:3b06:b0:539:8ad5:5093 with SMTP id 2adb3069b0e04-53a15231e1cmr6777070e87.35.1729526426302; Mon, 21 Oct 2024 09:00:26 -0700 (PDT) MIME-Version: 1.0 References: <1554256.1729521467@sss.pgh.pa.us> In-Reply-To: Reply-To: zarkonesmall@gmail.com From: Anatolii Smolianinov Date: Mon, 21 Oct 2024 18:00:15 +0200 Message-ID: Subject: Re: Timezone: resolve $TZDIR in runtime To: Adrian Klaver Cc: Tom Lane , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000004503980624fec018" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000004503980624fec018 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Adrian! Totally agree. I think embedded postgresql appeared mainly because of compatibility reasons. If you are using postgres on server, with some of the custom features which you can't find in other databases, and want to enable "local mod" for your users, (and also for tests maybe), but you don't want to roll out a compatibility layer with e.g. sqlite. As I've mentioned, it's not about embedded really, it is more about support of standard $TZDIR mechanics in general. Embedded postgresql was mentioned just for the context of my use case. On Mon, Oct 21, 2024 at 5:53=E2=80=AFPM Adrian Klaver wrote: > On 10/21/24 08:03, Anatolii Smolianinov wrote: > > Hi Tom, thanks for your reply! > > > > I understand your point, and also, the idea of embedding postgresql -- > > it might be just not what postgresql is built for. I was just thinking > > that respecting the standard TZDIR approach would add more flexibility. > > https://wiki.postgresql.org/wiki/Not_Worth_Doing#Features_We_Do_Not_Want > > "Embedded server > While PostgreSQL clients runs fine in limited-resource > environments, the server requires multiple processes and a stable pool > of resources to run reliably and efficiently. Stripping down the > PostgreSQL server to run in the same process address space as the client > application would add too much complexity and failure cases. Besides, > there are several very mature embedded SQL databases already available. " > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > --0000000000004503980624fec018 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Adrian!

Totally agre= e.=C2=A0

I think embedded postgresql appeared main= ly because of compatibility reasons. If you are using postgres on server, w= ith some of the custom features which you can't find in other databases= , and want to enable "local mod" for your users, (and also for te= sts maybe), but you don't want to roll out a compatibility layer with e= .g. sqlite.

As I've mentioned, it's not ab= out embedded really, it is more about support of standard $TZDIR mechanics = in general. Embedded postgresql was mentioned just for the context of my us= e case.

On Mon, Oct 21, 2024 at 5:53=E2=80=AFPM Adrian Klaver <= adrian.klaver@aklaver.com&= gt; wrote:
On 10= /21/24 08:03, Anatolii Smolianinov wrote:
> Hi Tom, thanks for your reply!
>
> I understand your point, and also, the idea of embedding postgresql --=
> it might be just not what postgresql is built for. I was just thinking=
> that respecting the standard TZDIR approach would add more flexibility= .

https://wiki.postgresql.org/= wiki/Not_Worth_Doing#Features_We_Do_Not_Want

"Embedded server
=C2=A0 =C2=A0 =C2=A0While PostgreSQL clients runs fine in limited-resource =
environments, the server requires multiple processes and a stable pool
of resources to run reliably and efficiently. Stripping down the
PostgreSQL server to run in the same process address space as the client application would add too much complexity and failure cases. Besides,
there are several very mature embedded SQL databases already available. &qu= ot;




--
Adrian Klaver
adrian.klave= r@aklaver.com

--0000000000004503980624fec018--