Re: Changing the Datatype from Bit to Boolean.

From: Mark Smith <mark(at)zoneget(dot)com>
To: hellen jiang <hellenjiang99(at)gmail(dot)com>, Gambhir Singh <gambhir(dot)singh05(at)gmail(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Changing the Datatype from Bit to Boolean.
Date: 2025-02-23 14:46:10
Message-ID: SA3PR18MB537004622884EDDF4F2C3FB0C8C12@SA3PR18MB5370.namprd18.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I am new to PostgreSQL. I am trying to restore a db downloaded from GitHub. Pg_restore is coming with error when tried using pgAdmin. Can you tell what the reason could be?

Thanks for your help.

Mark

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: hellen jiang <hellenjiang99(at)gmail(dot)com>
Sent: Sunday, February 23, 2025 8:13:05 AM
To: Gambhir Singh <gambhir(dot)singh05(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Changing the Datatype from Bit to Boolean.

you can add one new column(boolean) and then remove the BIT column。

On Sun, Feb 23, 2025, 12:58 AM Gambhir Singh <gambhir(dot)singh05(at)gmail(dot)com<mailto:gambhir(dot)singh05(at)gmail(dot)com>> wrote:

Hi,

Aurora PostgreSQL DB has a table in which one column has the datatype BIT(1). Now the requirement is that I have to change the datatype of that column from BIT to BOOLEAN. There are only a few rows in the table.

--
Thanks & Regards
Gambhir Singh

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Holger Jakobs 2025-02-23 15:27:42 Re: Changing the Datatype from Bit to Boolean.
Previous Message hellen jiang 2025-02-23 14:13:05 Re: Changing the Datatype from Bit to Boolean.