Hi I am creating vault back up for postgres database in azure. I deployed my terraform scripts as below.
resource "azurerm_data_protection_backup_vault" "abc-backup-vault" {
name = "abc-backup-vault"
resource_group_name =…
I am getting the following error while trying to add VNET Rules for Azure PostgresSQL database
│ Virtual Network Rule Name: "allow-app-service-access-0"): performing
CreateOrUpdate:
virtualnetworkrules.VirtualNetworkRulesClient#CreateOrUpdate:…
I'm seeking advice on how to optimize my timeseries database setup, which should handle a large volume of time-series data. I have around 20,000 time-series profiles with a one-year duration, using a quarterly time resolution (4 timestamps per…
I am trying to connect to a postgres database from my python script using the psycopg2 library. But I am getting the following error
import psycopg2
conn = psycopg2.connect(host = , port = 5432, database = , user = ,…
I have a postgres SQL database which I created a readonly user and has read access to existing objects.
I created a view and now I need to give the read access to the view.
once I gave access to the view, it shows Permission denied for View..
This…
I have Azure postgresql single server database which I need to give read permission to a newly created user.
CREATE USER "test@hostName" PASSWORD 'XXXX';
GRANT CONNECT ON DATABASE "test" TO "test@hostName";
ALTER DEFAULT PRIVILEGES
FOR USER…
Current environment
Python 3.10
Flask 2.3.2 and waitress 2.1.2
Postgresql DB on Azure Postgresql managed service (flexible server)
App Service running docker container for the server with same requirements as above
Calling endpoints from python…
I have a postgresql database that is in production within azure, I want to install a python extension on this database
i use database manager called DBeaver
with it I run the command:
CREATE EXTENSION plpython3u;
but I get the error:
could not open…
Hi I have a database with 10 tables. each table has ~0.5-1 billion rows, and partitioned by range and then hash (10x10=100 partitions). they are newly created tables, and import data from csv files. they are indexed on the column (id) used for…
I am trying to write a query to do keyset pagination.
But I see an unusual behavior here.
SELECT
p.id as Id,
p.first_name as FirstName,
p.last_name as LastName,
p.age as Age,
p.created_at as CreatedAt,
p.updated_at as UpdatedAt,
a.address as…
What I REALLY want to do is reset my postgresql db back to 4 hours prior (after my destructive DAST test runs), but I understand that is impossible, I can only restore to a NEW database. So I'll settle for some way to 'automate' this:
Restore 4…
I'm trying to create a new user in postgresql which have read only access to Databases. I followed this document I will just list out the commands I used
CREATE ROLE readaccess;
GRANT CONNECT ON DATABASE db_name TO readaccess;
GRANT USAGE ON…
I my stored procedures, I have inserted custom raise messages like this:
raise warning 'proc executed for schema %',schema_name
I want to be able to view these logs as I execute these procedures, but, I wonder how to go about doing this. I did find…
I'm trying to establish a direct connection between an Azure App Service and an Azure Database for PostgreSQL single server.
I'm currently connecting to the database through a string connection and a user created in the database itself.
I need to…
I have an Azure Web App with AD authentication enabled for a single tenancy. I also have a Azure Flexible Postgres database with AD Authentication enabled.
I have set up two User-Managed-Identities (A & B) and two AD security groups (A & B). I want…