214 questions
-1
votes
1
answer
418
views
How can you use the TimescaleDB extension with Azure Postgres Flexible server for Postgres v17.*
I am attempting to use the TimescaleDB extension with Azure Postgres but I keep getting this error
Because timescaledb isn't a trusted extension, only members of "azure_pg_admin" are ...
-1
votes
1
answer
116
views
Azure Postgres flexible server - How to delete a user?
Using my "globalAdmin" account (which is not a pg superuser) I create a user via
CREATE ROLE myDatabase_IntegrationServicesAccount LOGIN WITH PASSWORD 'test@12345'
and if I SELECT * FROM ...
0
votes
0
answers
87
views
How to call database function followed by VACUUM in cron job
I want to schedule some database maintenance that consists of deleting old data followed by VACUUM:
CREATE EXTENSION IF NOT EXISTS pg_cron;
SELECT cron.schedule('cleanup', '* * * * *', '
CALL ...
0
votes
1
answer
46
views
Is it necessary to carry out a Point-in-Time Recovery for both an original Azure database server and its read-only complement?
Given that:
You have an Azure subscription.
Within that subscription, you have an "Azure Database for PostgreSQL flexible server" - call this Server A.
Within the same subscription, you ...
0
votes
1
answer
56
views
Postgresql flexibleserver is failing with "AttributeError: 'FlexibleServerCapability' object has no attribute 'supported_features'" from Azure CLI
I am very new Azure and I have an OpenSUSE vm with latest AZ CLI 2.71.0 installed. I am trying to create Postgresql Flexible server through cli with the below command
az postgres flexible-server ...
0
votes
0
answers
210
views
Manual backup of azure-postgresql database
I have a managed postgresql database. I now want to replicate this on a VM with pg_dump and pg_restore (the purpose is not mainly backup, but rather to have a cheap recently-up-to-date staging and ...
0
votes
1
answer
260
views
Azure PostgreSql Flexible Server - Admin to database [closed]
Is it somehow possible to have an admin user in Azure PostgreSql who has rights over all objects - he can read write, but can also alter, delete or give rights to others etc?
It seems to me that this ...
0
votes
1
answer
69
views
Decrypt file encrypted with Azure Backup Vault
I have a backup vault in Azure that store long term backups of my Azure Database for PostgreSQL - Flexible Servers.
Problem is that I can't restore the backups. When I restore the backups in the ...
1
vote
1
answer
258
views
Getting permission denied while running query in azure PostgreSQL flexible server
Firstly I have been created a PostgreSQL 16 database on azure flexible server and
then I login with the admin account and trying to use postgresql-anonymizer to mask the data but while following the ...
1
vote
1
answer
222
views
PgHero permission denied for function pg_stat_statements_reset in Azure
I dumped and restored my database from AWS RDS to Azure Database for PostgreSQL - Flexible Server (PostgreSQL version 14.13) and even though PgHero used to work correctly, in Azure it throws ...
0
votes
1
answer
204
views
Connect to Azure Postgresql Flexible server Database from Nestjs using any ORM
We are builing a nestjs application that connects to Azure Postgresql Flexible Database server using Typeorm. We are following the passwordless apparoach using managed identity and using Entra token. ...
0
votes
1
answer
661
views
postgres upgrade and migration with no downtime
I am looking forward to upgrade azure Postgres flexible from version 12 to 16. I can do it with downtime using pgdump but I want to do it in a way that there is no downtime.
Postgres sql is in azure ...
0
votes
1
answer
163
views
Not able to do geo restore in same region of azure postgres flex server using terraform
I am trying to do restore of azure flexible postgres server on which geo redundant backup is enabled. From azure portal I am able to restore in same region. But from terraform I am getting error while ...
0
votes
0
answers
173
views
Unable to edit Azure PostgreSQL database created with Bicep
I have an Azure PostgreSQL Flexible Server and a database 'mydb' created with Bicep and Github Actions. When creating a database with Bicep, the database owner is set to the 'azuresu' role which is ...
0
votes
1
answer
131
views
How to find out which API to use in ARM Template to provision Postgresql flexible server
I created a bicep script to provision out a Postgresql Flexible server. I then build the script and output an ARM template to use in Azure Portal.
The deployment fails with the following errors.
No ...
0
votes
1
answer
653
views
Azure postgresql flexible server restore with terraform
I have deployed an azure postgresql flexible server using terraform.
The terraform code is in a submodule and I include it in the main.tf like this:
module "postgresql" {
source ...
1
vote
1
answer
655
views
PostGreSQL pg_dump psql and pg_restore errors with Azure Flexible SQL Server
I am trying to dump and then restore PostGreSQL databases using Azure PostGreSQL Flexible.
I am using pg_dump and psql previously for these purposes.
I have been succesfully using following commands ...
0
votes
1
answer
137
views
Connect Power BI Service to Azure PostgreSQL
I am trying to connect to Azure PostgreSQL to Power BI Service to create dashboards/reports. However, I can't find option to connect to Azure postgreSQL after navigating to Get Data option (green ...
0
votes
1
answer
241
views
Visualize Azure PostgresSQL table data
We have data stored in different tables in azure postgresql database. Now, we want to create dashboards/reports for our clients to visualize/analyze this data (preferably in azure). I am new to this ...
0
votes
1
answer
73
views
when I use LookupActivity and call deleteRecordSp it somehow rollsback the deleted record?
I encountered an issue while using Azure Synapse's Lookup Activity to call a stored procedure that deletes records from a table. Despite the activity completing almost instantaneously, no records were ...
0
votes
1
answer
405
views
Terraform obtain IP of azure postgres flexible server
I have a Postgres flexible server deployed using private networking:
resource "azurerm_subnet" "vnet_subnet_postgres" {
name = "my-subnet"
...
2
votes
1
answer
540
views
PostgreSQL deployment via ARM template failing due to too many configuration changes
I'm trying to deploy a PostgreSQL database via ARM template, along with around 33 config changes during deployment. Some of the configurations are updated but the rest fail with
'<server>' is ...
0
votes
1
answer
157
views
Azure PostgreSQL Flexible Server - set log_statement for specific user only
Is there any way to set log_statement for specific user in Azure PostgreSQL Flexible Server?
Normally it should be like: ALTER ROLE user_login SET log_statement TO 'all'; but due to access restriction ...
0
votes
2
answers
1k
views
Unable to connect from Azure data factory to postgres flexible server using private endpoint
I am trying to connect from Azure data factory to a Postgres Flexible server. I sticked to the official Microsoft documentation to achieve it: https://learn.microsoft.com/en-us/azure/postgresql/...
0
votes
1
answer
402
views
azure flexible server migration failing with collation UTF8
we're testing migration of postgres running on a VM to azure flexible server using the migration option in the portal. On the validation it fails saying
Error 603401: Collation mismatch. Collation ...
1
vote
2
answers
295
views
Reassign owned by in Postgres fails due to PgAudit
I have a Postgres 14 running in Azure Flexible Server. The server has the extension pg_audit enabled. I am using a psql client version 12 installed in a Linux machine.
I've used pg_restore to restore ...
0
votes
0
answers
157
views
Managed Migration Service of Azure Postgres Sibgle Server to Flexible server
I have been trying to migrate a database hosted in Azure PostgreSQL single server to Flexible server using the managed migration service provided. The migration fails with Foreign Key Constraint ...
0
votes
2
answers
521
views
How to Handle Point-in-Time Restore with Azure PostgreSQL and Terraform?
I'm using an Azure PostgreSQL database and need to perform a point-in-time restore (PITR) as part of a disaster recovery drill. I can successfully restore the database to a new server and update my ...
1
vote
1
answer
1k
views
How to connect from pgadmin to postgreSQL server with private endpoint in azure?
I just want to connect from my local host machine(pgadmin) to a azure postgreSQL database with private endpoint
So I have created a postgreSQL flexible server and I have choosen for the option Public ...
5
votes
0
answers
1k
views
Annoying bug with Azure Database for PostgreSQL flexible servers (v16.1) with "pg_read_all_data" role
I have been working on granting a read-only rights to a certain role within Postgres-flex v16, but that doesn't work. I login with my Azure admin account on the postgres-db server for creating a new ...
1
vote
0
answers
185
views
How to achieve list partitioning in Azure Postgres flexible server?
I'm using Azure Postgres flexible server and now I want to implement table partition by several values in a column. I went through pg_partmen(v4.7.1) extension docs and seems it doesn't support list ...
0
votes
2
answers
3k
views
Azure function is not deployed from VS - No HTTP triggers found
I am new to Azure function as well as python. I have created a Azure function using python v2 programming model and I can execute it successfully from VS code. But when try deploying either using VS ...
1
vote
1
answer
393
views
Syntax error when running materialized view refresh concurrently in Azure Flexible Server for PostgreSQL
I'm encountering a syntax error when attempting to refresh a materialized view concurrently in Azure Flexible Server for PostgreSQL v11.22.
REFRESH MATERIALIZED VIEW CONCURRENTLY data.mv_summary WITH ...
4
votes
1
answer
7k
views
Azure Web App - Application Error If you are the application administrator, you can access the diagnostic resources
I have created the Azure Postgres SQL Server and Web app with docker image following the official site of Wiki JS installation: https://docs.requarks.io/install/azurewebapp
Configured the web app with ...
0
votes
1
answer
452
views
Sent the Postgresql query result to Log Analytics workspace to create custom metric in Azure Monitor
I want to schedule to run a Postgresql query and Azure Monitor will generate a custom metric based on that query result then trigger an email if result return 1. I don't know how to send the SQL query ...
0
votes
1
answer
322
views
How to connect dbt Cloud to Azure PostgreSQL server inside a private vnet?
I'm looking for a possible solution to connect dbt Cloud to an Azure PostgreSQL server hosted in a private vnet.
I couldn't find a direct answer in dbt documentation. I am thinking about deploying a ...
0
votes
1
answer
172
views
How to get Connection String in Azure Function?
I have an Azure Function and a PostreSQL DB in Azure Cloud.
From my Azure Function I want to access the Connection String, let's call it IT-PostgreSQL.
This is my Azure Function:
namespace ...
1
vote
1
answer
3k
views
Azure postgres flexible server create user using terraform
I am trying to create users with names same as that of the DB in postgres flexible server using terraform. The user creation code is as below.
resource "...
0
votes
1
answer
461
views
Azure DB for Postgres not accessible from Azure App Services
I'm running a Dotnet Web API in a container on Azure App Services (Free tier plan).
In my application, I check the POSTGRES_CONN_STRING environment variable and then use it as a connection string for ...
0
votes
1
answer
484
views
SSL Mode=Require causes an error in Npgsql when connecting to pgBouncer
I have an old application which uses Npgsql Version 4.1.12
I am connecting to an Azure database which requires an SSL connection.
I can connect to the database using the string:
Server=xxxxx.postgres....
0
votes
1
answer
734
views
Unable to create ADF Linked Service for Azure Cosmos DB for PostgreSQL Cluster
I am facing issue when creating a linked service from ADF for Azure Cosmos DB for PostgreSql CLuster.. Please help me to resolve the issue.
Note:
Cluster is running.
In the cluster in Networking '...
0
votes
1
answer
900
views
Azure PostgreSQL flexi sever local pgAdmin connection timeout
I'm currently integrating our database with the Azure PostgreSQL Flexi server in the cloud. I've successfully set up the server on the Azure platform, but I'm encountering connectivity issues when ...
0
votes
1
answer
749
views
Error while running PostgreSQL command from terrafrom local-exec
I am trying to run some PostgreSQL command after creating the PostgreSQL.
First I tried to run the psql command line on my command prompt and it works. See below screenshot
The same I would like to ...
0
votes
1
answer
3k
views
Azure Database for PostgreSQL flexible server gives error permission denied for schema public
I am using Azure Database for PostgreSQL flexible server.
Here is what I am doing. Please let me know where I am going wrong.
Create a new PostgreSQL flexible server(With both authentication ...
0
votes
2
answers
3k
views
azure postgresql database with azure entra id
I am going through below documentation which shows various ways to authenticate Azure PostgreSQL database with Azure Entra ID
https://learn.microsoft.com/en-us/azure/postgresql/single-server/how-to-...
0
votes
1
answer
2k
views
Unable to insert data into Postgres: psycopg2.ProgrammingError: can't adapt type 'dict' [duplicate]
I have tried any solution I have found here so far, however not a single one solved my issues of not being able to insert data into azure Postgres using psycopg2.
This is the sample dict I have and ...
1
vote
1
answer
1k
views
Trying to add local IP to Azure PostgreSQL server but getting getaddrinfo ENOTFOUND
I'm using Azure App Service which created an Azure Database for PostgreSQL flexible server and I keep getting this error when trying to add my local IP to the firewall throught the Azure extension on ...
0
votes
1
answer
767
views
sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedFunction) function st_asewkb(point) does not exist
Postgres flexible server running on Azure. Postgis extension was installed to the dbo schema using
create extension postgis schema dbo;
which also contains the core data tables. Under extensions in ...
0
votes
1
answer
296
views
How does the locale setting change affect on upgrading PostgreSQL server on Azure?
I am going to upgrade PostgreSQL server from "Single Server" to "Flexible Server"(version 13) due to some business requirements. According to the Azure's doc, the Flexible Server ...
2
votes
2
answers
7k
views
Can't connect to Azure Postgres flexible server IP address not found
I've created a Azure Database for PostgreSQL flexible servers inside a virtual network, with a dedicated subnet for the database set to flexible servers. I've got a Private DNS Zone as well with an A ...