Not able to grant access on pg_signal_backend on azure flexible server

2024-04-18 Thread Saksham Joshi
Hi, We have created an azure postgresql flexible server and we have added an ad admin as a user and Created our database using this admin user.However,When are running this command: 'Grant pg_signal_backend To adminUser' we are getting an error that says 'permission denied to grant role "pg_signal_

Can you refresh a materialized view from a materialized view on another server?

2024-04-18 Thread Michael Nolan
My production server has a materialized view that is refreshed from a mysql_fdw several times a day. What I'd like to be able to do is refresh the materialized view on the testbed server from the one on the production server so that they are the same. (Refreshing it from the MySQL server will res

Foreign Key error between two partitioned tables

2024-04-18 Thread Michael Corey
Hello, I receive the following error when creating a foreign key between two partitioned tables. ERROR: there is no unique constraint matching given keys for referenced table "par_log_file" Here is my setup: CREATE TABLE par_log_file ( par_file_id character varying(20) NOT NULL, par_id

Re: Why does it sort rows after a nested loop that uses already-sorted indexes?

2024-04-18 Thread Tom Lane
negora writes: > As you can see, the planner does detect that the outer loop returns the > rows presorted by [sales_order.id]. However, it's unable to detect that > the rows returned by the inner loop are also sorted by [sales_order.id] > first, and then by [order_line.id]. That's a level of a

Why does it sort rows after a nested loop that uses already-sorted indexes?

2024-04-18 Thread negora
Hi: I've a question regarding nested loops and the order in which they return rows. Can you help me, please? Suppose that I've two tables:     - Table [sales_order]    * Columns [id]    * Index [sales_order_pkey] on [id]     - Table [order_line]    * Columns [id], [sales_ord