Re: psql behavior change on upgrade from version 12.x to 13.1

2021-02-09 Thread Adrian Klaver
ine: def install ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib} -L#{Formula["readline"].opt_lib}" ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include} -I#{Formula["readline"].opt_include}&q

Re: How to post to this mailing list from a web based interface

2021-02-14 Thread Adrian Klaver
-archive.org/PostgreSQL-general-f1843780.html -- Adrian Klaver adrian.kla...@aklaver.com

Re: ADD FOREIGN KEY fails, but the records exist

2021-02-15 Thread Adrian Klaver
of 103309156 sides=> select employer_response_id, part_date from strans.employer_response_p2021_01 where amended_response_id = 103309154; employer_response_id |  part_date --+-----     103309156 | 2021-01-06 00:00:00 (1 row) -- Adrian Klaver adrian.kla...@aklaver.com

Re: prepare in a do loop

2021-02-15 Thread Adrian Klaver
b.com <http://www.mokadb.com> -- Adrian Klaver adrian.kla...@aklaver.com

Re: ADD FOREIGN KEY fails, but the records exist

2021-02-15 Thread Adrian Klaver
On 2/15/21 8:23 AM, Ron wrote: On 2/15/21 10:17 AM, Adrian Klaver wrote: On 2/15/21 8:12 AM, Ron wrote: Postgresql 12.5 The error: DETAIL:  Key (amended_response_id, part_date)=(103309154, 2021-01-06 00:00:00) is not present in table "employer_response" is pointing at 103

Re: ADD FOREIGN KEY fails, but the records exist

2021-02-15 Thread Adrian Klaver
On 2/15/21 8:55 AM, Ron wrote: On 2/15/21 10:27 AM, Adrian Klaver wrote: On 2/15/21 8:23 AM, Ron wrote: On 2/15/21 10:17 AM, Adrian Klaver wrote: On 2/15/21 8:12 AM, Ron wrote: Postgresql 12.5 The error: DETAIL:  Key (amended_response_id, part_date)=(103309154, 2021-01-06 00:00:00

Re: ADD FOREIGN KEY fails, but the records exist

2021-02-15 Thread Adrian Klaver
rrent_date - 2021-02-15 00:00:00 In other words turned a date into a timestamp. -- Angular momentum makes the world go 'round. -- Adrian Klaver adrian.kla...@aklaver.com

Re: How to post to this mailing list from a web based interface

2021-02-15 Thread Adrian Klaver
The resend option does work, but you have to wait 30 seconds between messages, and I like to have the entire thread as it makes it easier to follow. Regards, -- Thomas -- Adrian Klaver adrian.kla...@aklaver.com

Re: prepare in a do loop

2021-02-15 Thread Adrian Klaver
gres$# end; postgres$# $$ language plpgsql; ERREUR:  erreur de syntaxe sur ou près de « execute » LIGNE 2 : execute moninsert(randname()); fine, quite coherent. then -- Adrian Klaver adrian.kla...@aklaver.com

Re: checkpointer and other server processes crashing

2021-02-15 Thread Adrian Klaver
, so presumably if a "goroutine" dies, the associated PG process would die too, but I'm not sure I grasp why that would cause a recovery/restart.  I also don't understand where the checkpointer process fits in the picture (and what would cause it to die). For the record, this is on PG 11.9 running on Debian. TIA, Joe -- Adrian Klaver adrian.kla...@aklaver.com

Re: checkpointer and other server processes crashing

2021-02-15 Thread Adrian Klaver
On 2/15/21 1:50 PM, Joe Abbate wrote: On 15/2/21 16:29, Adrian Klaver wrote: On 2/15/21 1:15 PM, Joe Abbate wrote: We've been experiencing PG server process crashes about every other week on a mostly read only website (except for a single insert/update on page access).  Typical log en

Re: pg_restore - generated column - not populating

2021-02-22 Thread Adrian Klaver
stgres version 13 Can you tell me what am I missing? Without the commands you used to do the dump and restore it will be difficult to come to any conclusions. It would also be helpful to look at the Postgres logs from the restore to see if there are any error messages. Thank you for your help. Santosh -- Adrian Klaver adrian.kla...@aklaver.com

Re: pg_restore - generated column - not populating

2021-02-22 Thread Adrian Klaver
ust did -Fc. 2) Big explicit in your dump and restore commands for -h(ost), -p(ort) and -U(ser). I suspect you may not be restoring to where you think you are. 3) Closely follow the progress of both the dump and the restore. -- Adrian Klaver adrian.kla...@aklaver.com

Re: pg_restore - generated column - not populating

2021-02-23 Thread Adrian Klaver
k on it further. Thanks for your suggestions. pgAdmin uses pg_dump to do backups. -- Adrian Klaver adrian.kla...@aklaver.com

Re: pg_restore - generated column - not populating

2021-02-23 Thread Adrian Klaver
23, 2021 at 7:27 AM Adrian Klaver <mailto:adrian.kla...@aklaver.com>> wrote: On 2/23/21 6:36 AM, Santosh Udupi wrote: > The pg_restore command is actually pg_restore -Ft -d mydb mydb.tar (my > mistake). > > I didn't provide the -h -p -U

Re: pg_restore - generated column - not populating

2021-02-23 Thread Adrian Klaver
pg_dump (PostgreSQL v13.2 on Ubuntu 20.04)  version 13.2 Hmm ... well, that would be a regression, but you're going to have to show us how to reproduce it.  I'm thinking there must be something odd about the way the table is declared.                         regards, tom lane -- Adrian Klaver adrian.kla...@aklaver.com

Re: pg_restore - generated column - not populating

2021-02-23 Thread Adrian Klaver
ore database do they look the same as below? If you drop the table in the problem database and then recreate it using the script below and then populate it with data does it work? On Tue, Feb 23, 2021 at 12:20 PM Adrian Klaver mailto:adrian.kla...@aklaver.com>> wrote: On 2/23

Re: pg_restore - generated column - not populating

2021-02-23 Thread Adrian Klaver
), rsync it to the destination server and then do the pg_restore on the server. -- Adrian Klaver adrian.kla...@aklaver.com

Re: PostgreSQL Licensing Question for pg_crypto and tablefunc extensions

2021-02-26 Thread Adrian Klaver
is also true of bits of the core server, actually.) Extensions you get from elsewhere might have different copyrights though.                         regards, tom lane -- Rumpi Gravenstein -- Adrian Klaver adrian.kla...@aklaver.com

Re: Duplicate key error

2021-03-03 Thread Adrian Klaver
ask scheduler on every 10 minutes. Error occurs only sometimes. There is no other process inserting to this table? -- Adrian Klaver adrian.kla...@aklaver.com

Re: Duplicate key error

2021-03-03 Thread Adrian Klaver
remain. I'm not understanding the above. Andrus. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Duplicate key error

2021-03-03 Thread Adrian Klaver
This table should contain last login time, user and ip address. It should be updated by every process on login. For this old entry is removed if it exists and new entry with same primary key is added. Andrus. -- Adrian Klaver adrian.kla...@aklaver.com

Re: A simple question: Why 'pg_ctl: command not found...' ?

2022-03-08 Thread Adrian Klaver
'INSERT'),and these statements executed successfully. So how to solve this problem? Should I use the dnf to install the 'postgresql-server' or just add some path to the environment variable? My system is Fedora 35 and the PostgreSQL version is 14. Thanks in advance! -- Adrian Klaver adrian.kla...@aklaver.com

Re: Serializable read only deferrable- implications

2022-03-08 Thread Adrian Klaver
BLE-CONSISTENCY regards, tom lane -- Adrian Klaver adrian.kla...@aklaver.com

Re: Serializable read only deferrable- implications

2022-03-08 Thread Adrian Klaver
would it be considered an issue by anyone? I'm not following what you are asking or trying to achieve. For instance how pg_my_temp_schema() fits into this? You will need to provide a more complete description of what it is you are doing. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Restoring using PG_DUMP in PG12 results in

2022-03-14 Thread Adrian Klaver
ENCODING 'UTF8' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;/ *Thanks & Regards* *Pranjal Shukla* -- Adrian Klaver adrian.kla...@aklaver.com

Re: Restoring using PG_DUMP in PG12 results in

2022-03-15 Thread Adrian Klaver
res 12 version of pg_restore to restore it to the Postgres 12 server. Thanks & Regards Pranjal Shukla On 3/14/22, 8:25 PM, "Adrian Klaver" wrote: On 3/14/22 06:39, Shukla, Pranjal wrote: > Hello, > > We tried importing into an empty database i

Re: [External]Re: Postgres Crash Issue

2022-03-15 Thread Adrian Klaver
rmally and possibly corrupted shared memory. Deepak Menon| Avaya Managed Services-Delivery|+91 9899012875| men...@avaya.com Leave Alert : -- Adrian Klaver adrian.kla...@aklaver.com

Re: Apparently table locks are the key issue to see red flags

2022-03-16 Thread Adrian Klaver
by now): 1) Postgres version 2) Definition of red flags? 3) How do you observe the tables locked? 4) The results of the process you use in 3) Regards, David -- Adrian Klaver adrian.kla...@aklaver.com

Re: Can you install/run postgresql on a FIPS enabled host?

2022-03-21 Thread Adrian Klaver
googling.  If anyone has any guidance or has gotten this to work, that would be most helpful. Thank you, *Becky McDermott* -- Adrian Klaver adrian.kla...@aklaver.com

Re: [EXTERNAL] Re: Can you install/run postgresql on a FIPS enabled host?

2022-03-21 Thread Adrian Klaver
On 3/21/22 15:43, McDermott, Becky wrote: Version 12.7 And the JDBC version? -Original Message- From: Adrian Klaver Sent: Monday, March 21, 2022 4:25 PM To: McDermott, Becky ; pgsql-general@lists.postgresql.org Subject: [EXTERNAL] Re: Can you install/run postgresql on a FIPS

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-27 Thread Adrian Klaver
much. Sincerely, Per Kaminsky -- Adrian Klaver adrian.kla...@aklaver.com

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-28 Thread Adrian Klaver
are part of one big transaction to be able Analyze can be run by itself in the transaction. As Tom said I am not seeing any information about indexes on the tables(s). Also, which one of the tables you showed is the temporary one or was that not shown? to make a rollback on any problem without causing an abnormal data state regarding the program. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-28 Thread Adrian Klaver
ect table with the new values, and then removed, it has no connection (FK or something else) to any other table. So that is the '// fill id_temp with new IDs' part? -- Adrian Klaver adrian.kla...@aklaver.com

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-28 Thread Adrian Klaver
ly don't need the VERBOSE. -------- *From:* Adrian Klaver *Sent:* Monday, March 28, 2022 17:59 *To:* Per Kaminsky ; pgsql-gene...@postgresql.org ; Tom Lane *Subject:* Re: Performance issues on FK Triggers after replacing a primary column On 3/28/22

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-28 Thread Adrian Klaver
id_temp with new IDs' actually does? And then the new occuring step, in the same transaction, which then also has shown the performance issues described if i would not remove the FK temporarily: ALTER TABLE "B" DROP CONSTRAINT "B_to_A_fkey"; UPDATE "B" SET type = 2 WHERE type ISNULL; ALTER TABLE "B" ADD CONSTRAINT "B_to_A_fkey" FOREIGN KEY (ref_a) REFERENCES A(id); ** -- Adrian Klaver adrian.kla...@aklaver.com

Re: Performance issues on FK Triggers after replacing a primary column

2022-03-28 Thread Adrian Klaver
by touching data in B. An UPDATE in Postgres is essentially a DELETE of the old row version and an INSERT of the new row version. I'm going to guess the INSERT of the new row version fires the FK triggers on B. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Does PGDG apt repository support ARM64?

2022-03-31 Thread Adrian Klaver
_focus=true#step:6:247 -- Adrian Klaver adrian.kla...@aklaver.com

Re: Does PGDG apt repository support ARM64?

2022-04-01 Thread Adrian Klaver
On 3/31/22 23:48, Daniele Varrazzo wrote: On 3/31/22 18:22, Daniele Varrazzo wrote: Are arm packages available at all? If so, what is the right procedure to install them? On Fri, 1 Apr 2022 at 06:07, Adrian Klaver wrote: From here: https://apt.postgresql.org/pub/repos/apt/dists/ I see

Re: How long does iteration over 4-5 million rows usually take?

2022-04-01 Thread Adrian Klaver
description there is no chance for an answer more detailed then; as long as it takes. Regards, David -- Adrian Klaver adrian.kla...@aklaver.com

Re: how to find out field size?

2022-04-04 Thread Adrian Klaver
Regards, David -- Adrian Klaver adrian.kla...@aklaver.com

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-06 Thread Adrian Klaver
up PowerShell script (which calls pg_dump). Is either one of those directories where the dump file is being output to? If not is the directory that file is being created in have AV checks disabled? -- Adrian Klaver adrian.kla...@aklaver.com

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-06 Thread Adrian Klaver
ed: A process has requested access to an object but has not been granted those access rights", happening after a previous dump file had been successfully saved in the same location. Richard -- Adrian Klaver adrian.kla...@aklaver.com

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-06 Thread Adrian Klaver
disabled(if that is possible) and see if it completes. Richard -- Adrian Klaver adrian.kla...@aklaver.com

Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection)

2022-04-06 Thread Adrian Klaver
e ext4 recovery mechanisms failed. This makes me logical replication more appealing. Laurent -- Adrian Klaver adrian.kla...@aklaver.com

Re: Per-Table vacuum_freeze_min_age

2022-04-06 Thread Adrian Klaver
://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS Per-table value for vacuum_freeze_min_age parameter. - chris -- Adrian Klaver adrian.kla...@aklaver.com

Re: Per-Table vacuum_freeze_min_age

2022-04-06 Thread Adrian Klaver
On 4/6/22 3:28 PM, Chris Bisnett wrote: On Wed, Apr 6, 2022 at 6:24 PM Adrian Klaver <mailto:adrian.kla...@aklaver.com>> wrote: It can: https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS <https://www.postgresql.org/docs

Re: psql removes dashed comments

2022-04-07 Thread Adrian Klaver
On 4/7/22 11:25, Boris Zentner wrote: Hi, I was wondering why psql loose dashed comments and what can be done about this misbehaviour. See this recent thread: https://www.postgresql.org/message-id/265623A4-F304-4E68-90D0-343F614DB2B7%40americanefficient.com -- Boris -- Adrian

FOR integer loop bug?

2022-04-08 Thread Adrian Klaver
6: FOR i IN 1.10 LOOP respectively. Why is the three period form allowed through and why does it produce no result? -- Adrian Klaver adrian.kla...@aklaver.com

Re: FOR integer loop bug?

2022-04-08 Thread Adrian Klaver
On 4/8/22 10:58 AM, Pavel Stehule wrote: pá 8. 4. 2022 v 19:56 odesílatel Adrian Klaver Why is the three period form allowed through and why does it produce no result? Maybe (2022-04-08 19:57:57) postgres=# select .10; ┌──┐ │ ?column? │ ╞══╡ │     0.10

Re: FOR integer loop bug?

2022-04-08 Thread Adrian Klaver
On 4/8/22 11:23, Ron wrote: On 4/8/22 13:07, Adrian Klaver wrote: Hmm, I'm going to have to think on this. The only thinking is: "That's a bug waiting to happen!" That was my first inclination. From here: https://www.postgresql.org/docs/current/plpgsql-control-str

Re: How easy is it to lose permissions in 'public' schema?

2022-04-11 Thread Adrian Klaver
what permissions the functions in public have? I've run those grants specifically naming public and all is well. Do I need to add that to the installer script? -- Adrian Klaver adrian.kla...@aklaver.com

Re: How easy is it to lose permissions in 'public' schema?

2022-04-11 Thread Adrian Klaver
On 4/11/22 17:34, Tom Lane wrote: Adrian Klaver writes: On 4/11/22 16:10, Rob Sargent wrote: I've just bumped into this. barnard=> select public.genome_threshold_mono('a'::text,'b'::text); ERROR:  permission denied for schema public LINE 1: select public.genome

Re: OpenSSL@1.1 not getting linked with Homebrew - trying to install postgresql

2022-04-12 Thread Adrian Klaver
n occurred within a child process:       RuntimeError: /usr/local/opt/openssl@1.1 not present or broken     Please reinstall openssl@1.1. Sorry :( Is openssl@1.1 actually at /usr/local/opt/ ? -- Adrian Klaver adrian.kla...@aklaver.com

Re: Require details that can we see the password history to a User account in PostgreSQL Database.

2022-04-15 Thread Adrian Klaver
a Postgres role or an application user? Please do the needful since the information require for auditing purpose. */Warm regards,/**/ M Sonai Muthu Raja Managed Delivery Services - DBA Support -- Adrian Klaver adrian.kla...@aklaver.com

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Adrian Klaver
he supplied arguments to the function in question are obviously bogus, but the reaction is correct, including call to nested functions. -- Adrian Klaver adrian.kla...@aklaver.com

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Adrian Klaver
n, including volatility, parallel safety, owner, security classification, access privileges, language, source code and description. -- Adrian Klaver adrian.kla...@aklaver.com

Re: function defined (or not), more worries on version 10->14 upgrade

2022-04-15 Thread Adrian Klaver
| Argument data types | Type +-+---+---+-- public | upc_check_digit | character varying | upc character varying | func (1 row) regards, tom lane -- Adrian Klaver adrian.kla...@aklaver.com

Re: Require details that can we see the password history to a User account in PostgreSQL Database.

2022-04-16 Thread Adrian Klaver
r an internal auditing purpose. Thanks. */Warm regards,/**/ M Sonai Muthu Raja -- Adrian Klaver adrian.kla...@aklaver.com

Re: Facing issues with pgsql upgrade.

2022-04-17 Thread Adrian Klaver
e database subdirectory "base/1" is missing. Previous connection kept postgres=# With Regards, Ajay Kajla -- Adrian Klaver adrian.kla...@aklaver.com

Re: Facing issues with pgsql upgrade.

2022-04-17 Thread Adrian Klaver
restore them if we have a folder backup of the data directory? When was the backup done and how? Are you sure it is a complete backup? Do you have tablespaces,other then the default, in use? Regards, Ajay -- Adrian Klaver adrian.kla...@aklaver.com

Re: Huge archive log generate in Postgresql-13

2022-04-18 Thread Adrian Klaver
documentation. Can you please suggest why huge archive log generated after upgrade  there any configure setting or this is Postgresql-13 behaviour. Postgresql-13 Postgresql conf file attached for your references. Regards, Ram Pratap. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Facing issues with pgsql upgrade.

2022-04-18 Thread Adrian Klaver
have a backup. Regards, Ajay On Mon, Apr 18, 2022 at 9:48 AM Adrian Klaver <mailto:adrian.kla...@aklaver.com>> wrote: On 4/17/22 19:11, Ajay Kajla wrote: > Thanks Adrian, > > 1. What if we re-create template0 and template1? First I would determine

Re: No psql md5 auth, psql 14.1 to PG 11

2022-04-18 Thread Adrian Klaver
password types. So: 1) How where the Postgres instances installed on both machines? 2) What is the exact psql command you are using? 3) What is the complete error message? Thanks, Pete O'Such -- Adrian Klaver adrian.kla...@aklaver.com

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-19 Thread Adrian Klaver
s creating the .backup file ..." What are the actual commands you are using to do the above? Richard -- Adrian Klaver adrian.kla...@aklaver.com

Re: Huge archive log generate in Postgresql-13

2022-04-19 Thread Adrian Klaver
ggest what changes need to required in PG13 conf file. Regards, Ram Pratap. -Original Message----- From: Adrian Klaver [mailto:adrian.kla...@aklaver.com <mailto:adrian.kla...@aklaver.com>] Sent: 18 April 2022 21:30 To: Ram Pratap Maurya <mailto:ram.mau...@lavainternation

Re: Joining with calendar table

2022-04-19 Thread Adrian Klaver
DATE, '2022-04-18'::DATE, '1 DAY' ) as j(a) left join dat on j.a = dat.jour where dat.jour is null; INSERT 0 14 Verify the dates where added then: COMMIT; -- Adrian Klaver adrian.kla...@aklaver.com

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-20 Thread Adrian Klaver
On 4/20/22 01:06, Thomas, Richard wrote: Adrian Klaver wrote: What are the actual commands you are using to do the above? The command used in a PowerShell script (run with Windows task scheduler) to dump each database should evaluate to: "C:\Program Files\PostgreSQL\10\bin\pg_dump.ex

Re: Can anyone confirm the flaw of postgres and how to deal with it?

2022-04-20 Thread Adrian Klaver
ble Best guess is that since you are not filtering on table_schema you are seeing columns for tables with table_name=a_table across all schemas. keeps listing columns that I can not see in the current table. Why does this happen? What is the solution? Regards, David -- Adrian Klaver

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-20 Thread Adrian Klaver
On 4/20/22 10:23 AM, Thomas, Richard wrote: Adrian Klaver wrote: On 4/20/22 01:06, Thomas, Richard wrote: - pg_dump.exe executable is not excluded from McAfee on-access scanning (although as recommended postgres.exe is) Why not? I would think the whole C:\Program Files\PostgreSQL\10\bin

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-20 Thread Adrian Klaver
On 4/20/22 10:23 AM, Thomas, Richard wrote: Adrian Klaver wrote: On 4/20/22 01:06, Thomas, Richard wrote: The command used in a PowerShell script (run with Windows task scheduler) to dump each database should evaluate to: "C:\Program Files\PostgreSQL\10\bin\pg_dump.exe" -b

Re: Are stored procedures/triggers common in your industry

2022-04-20 Thread Adrian Klaver
that actually is. For my purposes keeping this logic in the database makes changing or running multiple front ends easier. There is one place to change the logic vs keeping the same logic in different front ends in potentially different languages in sync. So for me it is common. -- Adrian

Re: PostgreSQL 10.20 crashes / Antivirus

2022-04-21 Thread Adrian Klaver
-v", "-F", "c", "-d", $dbName, "-h", "localhost", "-p", "6488", "-U", " backup_su", "-f", $backupFile) cmd /c $pgdumpCmd $pgdumpArgs 2`>`&1 | Out-File $pgdumpLogFile Richard -- Adrian Klaver adrian.kla...@aklaver.com

Re: Huge archive log generate in Postgresql-13

2022-04-21 Thread Adrian Klaver
d how is it managed? Regards, Ram Pratap. -- Adrian Klaver adrian.kla...@aklaver.com

Re: PG14: "is of" vs pg_typeof

2022-04-23 Thread Adrian Klaver
ersion 13. I also am not seeing, yet, where it was removed in 14. Is there anything obvious I am missing for easily resurrecting the above "is of" use ? Thanks, Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- Adrian Klaver adrian.kla...@aklaver.com

Re: PG14: "is of" vs pg_typeof

2022-04-23 Thread Adrian Klaver
5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- Adrian Klaver adrian.kla...@aklaver.com

Re: PG14: "is of" vs pg_typeof

2022-04-23 Thread Adrian Klaver
:regtype); ?column? -- t select pg_typeof(1::int) in ('text'::regtype, 'varchar'::regtype); ?column? -- f Thanks, Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- Adrian Klaver adrian.kla...@aklaver.com

Re: SELECT creates millions of temp files in a single directory

2022-04-23 Thread Adrian Klaver
recent years have been that Postgres was/is to conservative in its default settings and is not taking advantage of newer more powerful hardware. -- Adrian Klaver adrian.kla...@aklaver.com

Re: SELECT creates millions of temp files in a single directory

2022-04-23 Thread Adrian Klaver
On 4/23/22 14:58, Peter wrote: On Sat, Apr 23, 2022 at 02:11:00PM -0700, Adrian Klaver wrote: ! On 4/23/22 12:50, Peter wrote: ! ! ! > People seem to have been brainwashed by Web-Services and OLTP, ! > and now think the working set must always fit in memory. But this ! > is

Re: SELECT creates millions of temp files in a single directory

2022-04-23 Thread Adrian Klaver
beloved ZFS, and as a lover I react. ;) Be that as it may, the requested information is still needed. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Handling glibc v2.28 breaking changes

2022-04-24 Thread Adrian Klaver
ta_changes Thank you for your help. Best regards, Pradeep -- Adrian Klaver adrian.kla...@aklaver.com

Re: Backing up a DB excluding certain tables

2022-04-26 Thread Adrian Klaver
s below." And Examples is: https://www.postgresql.org/docs/current/app-pgdump.html#PG-DUMP-EXAMPLES Respectfully, Jorge Maldonado -- Adrian Klaver adrian.kla...@aklaver.com

Re: Fresh eyeballs needed: input into error

2022-04-26 Thread Adrian Klaver
character. What client are you using to run this? Where is the query string coming from? TIA, Rich -- Adrian Klaver adrian.kla...@aklaver.com

Re: Fresh eyeballs needed: input into error

2022-04-26 Thread Adrian Klaver
On 4/26/22 2:53 PM, Rich Shepard wrote: On Tue, 26 Apr 2022, Adrian Klaver wrote: I'm guessing some sort of hidden character. Adrian, Oh, ... forgot to mention in my response that the MWE values were added to the template in emacs while I get the same error using psql -d -f in a v.

Re: Fresh eyeballs needed: input into error

2022-04-26 Thread Adrian Klaver
ax, somewhere since this morning you introduced a hidden character into the string. Thanks, Rich -- Adrian Klaver adrian.kla...@aklaver.com

Re: Fresh eyeballs needed: input into error [FIXED]

2022-04-26 Thread Adrian Klaver
On 4/26/22 20:11, Bruce Momjian wrote: On Tue, Apr 26, 2022 at 06:09:42PM -0700, Rich Shepard wrote: On Tue, 26 Apr 2022, Rich Shepard wrote: I am curious what OS psql was using that was fixed by a re-login? Rich uses Slackware. -- Adrian Klaver adrian.kla...@aklaver.com

Re: Privilege error with c functions during postgresql upgrade from 11 -> 13

2022-04-27 Thread Adrian Klaver
this same error for pg_buffercache_pages() as well. They are both c functions stored in libdir. Can anyone point me towards where pg_dump is getting these outdated permissions from please? Thanks! -- Adrian Klaver adrian.kla...@aklaver.com

Re: Backing up a DB excluding certain tables

2022-04-27 Thread Adrian Klaver
t to exclude these tables because they are created and managed by other means. Such tables are part of the authentication feature included in ASP.NET <http://ASP.NET> Core. With respect, Jorge Maldonado -- Adrian Klaver adrian.kla...@aklaver.com

Re: Backing up a DB excluding certain tables

2022-04-28 Thread Adrian Klaver
On 4/28/22 09:57, JORGE MALDONADO wrote: Good day, Here is the output to commands suggested by *Adrian Klaver*. Encoding is the same in both client and server. Also, there are 7 tables I want to exclude. image.png The version of source DB is 11, and target version is 14. Regarding the

Re: Privilege error with c functions during postgresql upgrade from 11 -> 13

2022-04-28 Thread Adrian Klaver
THORIZATION; SELECT pg_catalog.binary_upgrade_set_record_init_privs(false); REVOKE ALL ON FUNCTION "public"."bt_index_check"("index" "regclass") FROM "16416"; In other words why the role 16416 was GRANTed ALL then REVOKEd ALL on the function? -- Adrian Klaver adrian.kla...@aklaver.com

Re: External psql editor

2022-04-29 Thread Adrian Klaver
the file later by doing. \e afiedt.buf Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com -- Adrian Klaver adrian.kla...@aklaver.com

Re: Backing up a DB excluding certain tables

2022-05-02 Thread Adrian Klaver
text only. The information is then lost. Copy and paste from the console. Back to the issue at hand: 1) Did you try the suggestion in the "Notes for Windows users" for the riopoderoso database? 2) What was the pg_dump command that you used that worked? With respect, Jorge Mald

Re: Backing up a DB excluding certain tables

2022-05-03 Thread Adrian Klaver
-table '*."AspNet*"' * --exclude-table'*."AspNet*"' -------- -- Adrian Klaver adrian.kla...@aklaver.com

Re: Backing up a DB excluding certain tables

2022-05-03 Thread Adrian Klaver
c chcp 1252 Active code page: 1252 C:\Users\JorgeMal>chcp Active code page: 1252 The result always included tables with *AspNet* in the name. I am at a loss for an answer. I just don't use Windows enough to know where to go from here. Regards, Jorge Maldonado --

Re: WIN1252 vs UTF8 database encoding

2022-05-04 Thread Adrian Klaver
. Does it make sense? Yes: https://www.postgresql.org/docs/current/multibyte.html "On Windows, however, UTF-8 encoding can be used with any locale." Regards, Jorge Maldonado -- Adrian Klaver adrian.kla...@aklaver.com

Re: Need to install Postgres Version 14 in Linux server with Client and migration steps.

2022-05-09 Thread Adrian Klaver
: https://www.postgresql.org/download/ As to migrating that would need more information: 1) Migrating from what version of Postgres? 2) Migrate as?: a) Dump and then restore. OR b) pg_upgrade Regards Thirumurugan Rajamoorthy – Biometrics Support -- Adrian Klaver adrian.kla

Re: Fedora 36

2022-05-10 Thread Adrian Klaver
On 5/10/22 09:38, Kieran McCusker wrote: Hi Is there any timeline for a Fedora 36 repository as it should be released today? Looks like it is there: https://yum.postgresql.org/packages/#pg14 Many thanks Kieran -- Adrian Klaver adrian.kla...@aklaver.com

Re: Fedora 36

2022-05-12 Thread Adrian Klaver
On 5/12/22 03:39, Kieran McCusker wrote: Please reply to list also Ccing list. Hi Fedora 36 is there now but it is missing pg_cron - Is that intentional? I don't know that is something you would need to ask the packagers: https://yum.postgresql.org/contact/ Cheers Kieran -- A

Re: Restricting user to see schema structure

2022-05-12 Thread Adrian Klaver
& Regards Neeraj -- Adrian Klaver adrian.kla...@aklaver.com

Re: Restricting user to see schema structure

2022-05-12 Thread Adrian Klaver
any of the other system catalogs. -- Adrian Klaver adrian.kla...@aklaver.com

<    16   17   18   19   20   21   22   23   24   25   >