Azure Database for PostgreSQL - Flexible Server - Max Limit

Khuva, Parsottam 21 Reputation points
2022-05-23T06:01:21.227+00:00

Hi Team,

Want to know about Azure Database for PostgreSQL - Flexible Server - Maximum number of database limit and also maximum number of tables support in single database limit.

Thank you for your support and help.

Azure Database for PostgreSQL
0 comments No comments
{count} votes

Accepted answer
  1. Anurag Sharma 17,631 Reputation points
    2022-05-23T08:49:47.017+00:00

    Hi @Khuva, Parsottam , welcome to Microsoft Q&A forum.

    As I understand you would like to know the limit of maximum number of databases and tables in Azure PostgreSQL - Flexible Server.

    Practically there is no limit on number of databases or tables in databases that we can create in Azure PostgreSQL - Flexible Server. We can create as many as databases as we need till we don't exhaust the Compute and Storage options, please refer to below article on the same:

    Compute and Storage options in Azure Database for PostgreSQL - Flexible Server

    As an example, general purpose storage size varies from 32 GB to 16 TB. We can create any number of databases and subsequently tables in them as long as storage does not cross this limit. Once we reach this limit the server will start returning errors and prevent any further modifications. This may also cause problems with other operational activities, such as backups and WAL archival.

    You can read through the above article as it mentions every detail.

    Please let me know if this helps or else we can discuss further.

    ----------

    If answer is helpful please click on 204587-image.png as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions. Thank you for helping to improve Microsoft Q&A!

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Khuva, Parsottam 21 Reputation points
    2022-05-24T04:58:44.977+00:00

    Thank you so much AnuragSharma-MSFT. This was very helpful.

    0 comments No comments

  2. Khuva, Parsottam 21 Reputation points
    2022-05-25T04:59:00.857+00:00

    Hi AnuragSharma-MSFT,

    One followed up question w.r.t. the same limit scenarios:
    We have 1000+ devices and we have 10 tables to store data from each device. With regards to performance and maintainability point of view, which one of below is good for us:

    Is it a good to have separate database for each device so 1000 databases and each database with 10 tables?
    OR
    Is it a good to have single database to store 1000 devices data i.e. Single database with 1000 device * 10 tables= 10000 tables.

    Thank you for your support and help.


  3. Khuva, Parsottam 21 Reputation points
    2022-05-26T07:16:42.297+00:00

    @AnuragSharma-MSFT, any inputs would be highly appreciated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.