Re: [17] CREATE COLLATION default provider

2024-01-21 Thread Jeff Davis
On Thu, 2024-01-18 at 11:15 +0100, Peter Eisentraut wrote: > I wonder, however, how useful this would be in practice.  In most > interesting cases, you need to know what the provider is to be able > to > spell out the locale name appropriately.  The cases where some > overlap > exists, like the

Re: [17] CREATE COLLATION default provider

2024-01-18 Thread Peter Eisentraut
On 15.06.23 06:47, Jeff Davis wrote: Currently, CREATE COLLATION always defaults the provider to libc. The attached patch causes it to default to libc if LC_COLLATE/LC_CTYPE are specified, otherwise default to the current database default collation's provider. That way, the provider choice at i

Re: [17] CREATE COLLATION default provider

2023-07-07 Thread Gurjeet Singh
On Fri, Jul 7, 2023 at 9:33 AM Jeff Davis wrote: > > On Sat, 2023-06-17 at 09:09 -0700, Gurjeet Singh wrote: > > The docs for the CREATE COLLATION option 'locale' say: "This is a > > shortcut for setting LC_COLLATE and LC_CTYPE at once." > > > > So it's not intuitive why the check does not include

Re: [17] CREATE COLLATION default provider

2023-07-07 Thread Jeff Davis
On Sat, 2023-06-17 at 09:09 -0700, Gurjeet Singh wrote: > The docs for the CREATE COLLATION option 'locale' say: "This is a > shortcut for setting LC_COLLATE and LC_CTYPE at once." > > So it's not intuitive why the check does not include a test for the > presence of 'localeEl', as well? If we cons

Re: [17] CREATE COLLATION default provider

2023-06-17 Thread Gurjeet Singh
On Wed, Jun 14, 2023 at 9:48 PM Jeff Davis wrote: > > Currently, CREATE COLLATION always defaults the provider to libc. > > The attached patch causes it to default to libc if LC_COLLATE/LC_CTYPE > are specified, otherwise default to the current database default > collation's provider. +