Re: Tools for moving normalized data around

2023-01-18 Thread Gavan Schneider
ry small sliver in this problem: The key collision problem could be avoided if the unique and arbitrary keys were UUID Many of the other keys should be related to their respective “table of truth” so the migration is dependant on these being the same across the locations The rest TBA down thre

Re: pg_upgrade 13.6 to 15.1?

2023-01-15 Thread Gavan Schneider
can see no advantage in pure ASCII when there is the potential for the real world to be contributing text. And there could well be non-ASCII characters lurking in the old dB, especially since someone set it up to receive them. Regards Gavan Schneider —— Gavan Schneider, Sodwalls, N

Re: Stored procedure code no longer stored in v14 and v15, changed behaviour

2022-12-01 Thread Gavan Schneider
seem to be the least change needed to allow existing usage to move with the new Pg versions (and maybe help pgAdmin as well) Regards Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: Seeking practice recommendation: is there ever a use case to have two or more superusers?

2022-11-21 Thread Gavan Schneider
plicated than just trying to restrict the superuser role. Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: ('dog$house' = quote_ident('dog$house')) is surprisingly FALSE

2022-10-06 Thread Gavan Schneider
pic would be simpler if the case was left alone but that’s a long road ago and I believe most of the bridges have been burnt :) Regards Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to ev

Re: Creation of FK without enforcing constraint for existing data

2022-08-02 Thread Gavan Schneider
knowledge of SQL Server and how this is specified there, but the …DEFFER… syntax is according to the SQL standard Regards Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human prob

Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence

2022-07-19 Thread Gavan Schneider
umbers-in-a-sequence-with-sql/> 2022 update: this link is now dead, only reporting "There is nothing here". $COMMENT$; Regards Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solu

Re: newbie db design question

2022-06-11 Thread Gavan Schneider
es which matter), and only cause extra db work when new data is entered (i.e., no ongoing overhead). Regards Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: Strange results when casting string to double

2022-02-16 Thread Gavan Schneider
to floating point there will never be value resolving why there are differences. I suggest using the comparison that is appropriate to the representation of those values or fix the design by using the proper representation. Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanati

Re: Best Strategy for Large Number of Images

2021-12-15 Thread Gavan Schneider
embedded photos), and keeping records so disputes can be handled. This is not a high volume access to the images so there is no real need for optimum filesystem speed to serve the images… keeping them in the database as bytea is perfectly workable and will work for data volumes well beyond the current estima

Re: Alter and move corresponding: was The tragedy of SQL

2021-09-15 Thread Gavan Schneider
s accurately emulated, e.g., http://ibm1130.org/emu/ What is truly amazing about old style FORTRAN is that it has a theological aspect. What other computer language can give truth to a maxim such as: IN FORTRAN GOD IS REAL Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explan

Re: Sort question - Fractions, Metric etc

2021-08-14 Thread Gavan Schneider
/machinist_tables.htm Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: A simple question about text fields

2021-06-17 Thread Gavan Schneider
On 18 Jun 2021, at 9:34, David G. Johnston wrote: > On Thursday, June 17, 2021, Gavan Schneider > wrote: > >> >> My approach is to define such fields as ‘text’ and set a constraint using >> char_length(). This allows PG to do the business with the text in nativ

Re: A simple question about text fields

2021-06-17 Thread Gavan Schneider
only imposes the cost of any length check when the field is updated… best of both worlds. Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: database sorting algorithms.

2021-05-01 Thread Gavan Schneider
are needed. So the overall performance is proportional to the number of elements (N) multiplied by the log of the number of elements, viz., N * log(N) Regards Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known

Re: archive_commnad parameter question

2021-04-19 Thread Gavan Schneider
]” in shell scripts Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: unexpected character used as group separator by to_char

2021-03-10 Thread Gavan Schneider
;) Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. — H. L. Mencken, 1920

Re: vacuumdb not letting me connect to db

2021-02-06 Thread Gavan Schneider
RAM utilisation is totally normal. That’s not unexpected. The CPU activity should be using the data held in RAM not spending all those cycles allocating RAM. Gavan Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well

Re: vacuumdb not letting me connect to db

2021-02-05 Thread Gavan Schneider
. OP now has a choice: decrease threads or (seriously) upgrade the hardware. We in the gallery would love to see a plot of total time to completion as a function of threads invoked (50-300 increments of 50) assuming the starting conditions are the same :) Gavan Schneider —— Gavan Schneider

Re: How to convert escaped text column - force E prefix

2021-01-06 Thread Gavan Schneider
on null input; if the argument might be null, quote_nullable is often more suitable. See also Example 42.1. quote_literal(E'O\'Reilly') → 'O''Reilly' It is even more ugly but would it at least help with the SQL injection risk? Gavan Schneider —— Gavan Schneider, Sodwalls, NSW

Re: DOMAIN/composite TYPE vs. base TYPE

2020-09-28 Thread Gavan Schneider
Schneider —— Gavan Schneider, Sodwalls, NSW, Australia Explanations exist; they have existed for all time; there is always a well-known solution to every human problem — neat, plausible, and wrong. The ancients, in the case at bar, laid the blame upon the gods: sometimes they were remote and surly

Re: PG12.2 Configure cannot enalble SSL

2020-05-15 Thread Gavan Schneider
/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/usr/local/Cellar/openssl@1.1/1.1.1g/include -I/usr/local/include -I/Library/Developer/CommandLineTools/usr/include conftest.c >&5 configure:13101: $? = 0 configure:13101: result: yes Regards Gavan Schneider —

Re: PG12.2 Configure cannot enalble SSL

2020-05-15 Thread Gavan Schneider
On 15 May 2020, at 23:24, Tom Lane wrote: "Gavan Schneider" writes: HDRS=${HDRS}:"/usr/local/Cellar/openssl@1.1/1.1.1g/include" ... --with-includes=${HRDS} If that's an accurate copy of your script, spelling HDRS correctly would help. D’oh! More

Re: PG12.2 Configure cannot enalble SSL

2020-05-15 Thread Gavan Schneider
On 14 May 2020, at 23:26, Tom Lane wrote: "Gavan Schneider" writes: -bash-3.2$ ./configure --with-openssl \ > --with-includes=/usr/local/opt/openssl/include/openssl \ > --with-libraries=/usr/local/opt/openssl/lib ... checking openssl

PG12.2 Configure cannot enalble SSL

2020-05-14 Thread Gavan Schneider
sh-3.2$ -bash-3.2$ /usr/local/Cellar/openssl@1.1/1.1.1g/bin/openssl version OpenSSL 1.1.1g 21 Apr 2020 -bash-3.2$ Gavan Schneider —— Gavan Schneider, Sodwalls, NSW Australia Explanations exist; they have existed for all time; there is always a well-known solution to