Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppX66-0007dd-Ty for pgsql-sql@arkaria.postgresql.org; Thu, 20 Apr 2023 16:25:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppX65-0003zS-G2 for pgsql-sql@arkaria.postgresql.org; Thu, 20 Apr 2023 16:25:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppX65-0003zI-5G for pgsql-sql@lists.postgresql.org; Thu, 20 Apr 2023 16:25:25 +0000 Received: from premium22-3.web-hosting.com ([68.65.122.105]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppX61-0043og-Ib for pgsql-sql@lists.postgresql.org; Thu, 20 Apr 2023 16:25:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=misuse.org; s=default; h=Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cTZEIJJuynbIZdAL8OpTpPtxglaAunXCyc5Jxe3L2Cs=; b=Dv9dKDIQ2pni7ZwIQmf1bwTwSX x+aFWEqhKipl5CVdgjRTg0WmqcOuBVdxpYGeX7j7ANBucOadIG5z+gy1Zaevi6e6DI+dtO+s5SjC+ cftv9Cb78zezGyCNznDryt8qzjyJiiLPDMNL/iR9P1mF9JEoGD+ZYOTPZ3tFoU2gT20hOYIEEtdGk Eprq25GeuErre1riJHMINDH6CptaGJDuN4f8Y0LYnQmT5S3cPdggoA2+s6r24hnuLR75JZma6YL9q +aPJXSjKbHgX8s1s/Xg17iuCRLCv5yVVzkeUAc+elr8pmhM38Zcmg1cFA4CyGYXNlL1LsmvLy1FJl Q56FixFw==; Received: from mail-yb1-f174.google.com ([209.85.219.174]:46628) by premium22.web-hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1ppX5u-002r2x-1n for pgsql-sql@lists.postgresql.org; Thu, 20 Apr 2023 12:25:18 -0400 Received: by mail-yb1-f174.google.com with SMTP id t16so2486249ybi.13 for ; Thu, 20 Apr 2023 09:25:13 -0700 (PDT) X-Gm-Message-State: AAQBX9fLeK1WUfA02BX31GnKWqbLCElsw7zYT0N1P290GhOI/jb6dGgU EgbWmLUTqgaPuqNoIDYOEnOtJo3fPeke0oTAiEA= X-Google-Smtp-Source: AKy350b50hiVuHCpIziJrSmXgZMDJ8Jt5XnOsYfWSI2bMIKaIQct6Qw/x4sqVjiMdC6XclGp9x5JS/a+20qolsFUaGo= X-Received: by 2002:a25:680b:0:b0:b8f:5376:7b3 with SMTP id d11-20020a25680b000000b00b8f537607b3mr1769027ybc.24.1682007912874; Thu, 20 Apr 2023 09:25:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Steve Midgley Date: Thu, 20 Apr 2023 09:25:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: PostgreSQL Objects design To: kunwar singh Cc: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000280c3105f9c6fcde" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - premium22.web-hosting.com X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - misuse.org X-Get-Message-Sender-Via: premium22.web-hosting.com: authenticated_id: science@misuse.org X-Authenticated-Sender: premium22.web-hosting.com: science@misuse.org X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000280c3105f9c6fcde Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 20, 2023 at 9:01=E2=80=AFAM kunwar singh wrote: > Hi Listers, > I want to learn more about Table/Columns/Indexes design. > > - How big the columns should be? > - How many number of columns should a table have at max? > - How many rows a tables should have at max > - What are size limitations of different data types > > > Any books, blogs , videos, courses that you recommend I go over? > > I have been an Oracle DBA , but only from a support and tuning standpoint= . > I have never done this kind of work before, even in Oracle. So interested > in learning in this area? > > Any approach that will speed up my learning? > The Postgres docs, IMO, are astonishingly good. https://www.postgresql.org/docs/ -- Not what I tend to expect from open source projects, but there's a reason (again IMO) Postgres is the best database solution ever built. Regarding your specific question here are the current "hard" limits https://www.postgresql.org/docs/current/limits.html But recognize that the effective limits on your system are going to be lower, and based on your available ram, disk, and other resources. Stackoverflow might be a good place to understand more about these kinds of limits. I'll say that for my use cases, I've never had to worry about anything other than applying the right index or reworking my SQL statement to solve a particular problem in Postgres. So I'd say try to learn about various index techniques and how to use Postgres' SQL, as the starting place to learn. I think EnterpriseDB has good resources for those coming from Oracle as well.. Welcome to the light side! Steve --000000000000280c3105f9c6fcde Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Thu, Apr 20, 2023 at 9:01=E2=80=AF= AM kunwar singh <krishsingh.= 111@gmail.com> wrote:
Hi Listers,
I want to learn more abo= ut Table/Columns/Indexes=C2=A0 design.=C2=A0
  • How big the = columns should=C2=A0be?=C2=A0
  • How many number of columns should a t= able have at max?=C2=A0
  • How many rows a tables should have=C2=A0at = max
  • What are size limitations of different data types

Any books, blogs , videos, courses that you recommend= I go=C2=A0over?

I have been an Oracle DBA , but o= nly from a support and tuning standpoint. I have never done this kind of wo= rk=C2=A0before, even=C2=A0in=C2=A0Oracle. So interested in learning in this= area?

Any approach that will speed up my learning= ?=C2=A0

The Postgres docs= , IMO, are astonishingly good.=C2=A0https://www.postgresql.org/docs/ -- Not what I tend to expect fro= m open source projects, but there's a reason (again IMO) Postgres is th= e best database solution ever built. Regarding your specific question here = are the current "hard" limits https://www.postgresql.org/docs/current/limits= .html=C2=A0

But recognize that the effective l= imits on your system are going to be lower, and based on your available ram= , disk, and other resources.

Stackoverflow might b= e a good place to understand more about these kinds of limits. I'll say= that for my use cases, I've never had to worry about anything other th= an applying the right index or reworking my SQL statement to solve a partic= ular problem in=C2=A0Postgres. So I'd say try to learn about various in= dex=C2=A0techniques and how to use=C2=A0Postgres' SQL, as the starting = place to learn. I think EnterpriseDB has good resources for those coming fr= om Oracle as well..

Welcome to the light side!
Steve
--000000000000280c3105f9c6fcde--