Lists: | pgsql-novice |
---|
From: | Hilda Raymond <hildaraymond(at)gmail(dot)com> |
---|---|
To: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | postgres default database deleted!! |
Date: | 2010-01-06 07:32:25 |
Message-ID: | feeb312b1001052332t6cfb6b91l6cebe29456a9364e@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
Hi,
Im new to postgres and and as soon as I listed databases using the psql -l
command, i accidentally deleted the postgres default database. Im not sure
what to do. Appreciate any help Thank you.
--
Hilda
--
Hilda
From: | Pushpendra Singh Thakur <thakur(at)corexprts(dot)com> |
---|---|
To: | Hilda Raymond <hildaraymond(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org |
Subject: | Re: postgres default database deleted!! |
Date: | 2010-01-06 10:44:45 |
Message-ID: | d6a413081001060244p4bc0570byab2427eb391bbaf4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
if you have deleted the database named "postgres", no need to worry, it was
empty.
2010/1/6 Hilda Raymond <hildaraymond(at)gmail(dot)com>
>
>
>
> Hi,
>
> Im new to postgres and and as soon as I listed databases using the psql -l
> command, i accidentally deleted the postgres default database. Im not sure
> what to do. Appreciate any help Thank you.
>
> --
> Hilda
>
>
>
>
> --
> Hilda
>
>
--
Pushpendra Singh Thakur
COREEXPERTS Technologies Private Limited
Business Process Automation & IT Support Services
http://www.corexprts.com
Phone - 91-761-4070036
Fax - 91-761-4010530
SMS - 91-799-66554
From: | Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com> |
---|---|
To: | Hilda Raymond <hildaraymond(at)gmail(dot)com> |
Cc: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: postgres default database deleted!! |
Date: | 2010-01-06 10:45:16 |
Message-ID: | 65937bea1001060245t44145facv16b44c0a59e5de09@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
On Wed, Jan 6, 2010 at 1:02 PM, Hilda Raymond <hildaraymond(at)gmail(dot)com>wrote:
>
>
>
> Hi,
>
> Im new to postgres and and as soon as I listed databases using the psql -l
> command, i accidentally deleted the postgres default database. Im not sure
> what to do. Appreciate any help Thank you.
>
>
You can simply recreate the DB like so:
create database postgres;
It will take everything from the template1 database and make a copy by the
name 'postgres'.
Best regards,
--
gurjeet.singh
@ EnterpriseDB - The Enterprise Postgres Company
http://www.enterprisedb.com
singh(dot)gurjeet(at){ gmail | yahoo }.com
Twitter/Skype: singh_gurjeet
Mail sent from my BlackLaptop device
From: | Hilda Raymond <hildaraymond(at)gmail(dot)com> |
---|---|
To: | Pushpendra Singh Thakur <thakur(at)corexprts(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: postgres default database deleted!! |
Date: | 2010-01-07 04:00:54 |
Message-ID: | feeb312b1001062000h14b18459ncf9116249e95d8d3@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
Thank you :-)
On Wed, Jan 6, 2010 at 4:14 PM, Pushpendra Singh Thakur <
thakur(at)corexprts(dot)com> wrote:
> if you have deleted the database named "postgres", no need to worry, it was
> empty.
>
> 2010/1/6 Hilda Raymond <hildaraymond(at)gmail(dot)com>
>
>
>>
>>
>> Hi,
>>
>> Im new to postgres and and as soon as I listed databases using the psql
>> -l command, i accidentally deleted the postgres default database. Im not
>> sure what to do. Appreciate any help Thank you.
>>
>> --
>> Hilda
>>
>>
>>
>>
>> --
>> Hilda
>>
>>
>
>
> --
> Pushpendra Singh Thakur
>
> COREEXPERTS Technologies Private Limited
> Business Process Automation & IT Support Services
> http://www.corexprts.com
> Phone - 91-761-4070036
> Fax - 91-761-4010530
> SMS - 91-799-66554
>
--
Hilda
From: | Hilda Raymond <hildaraymond(at)gmail(dot)com> |
---|---|
To: | Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com> |
Cc: | "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: postgres default database deleted!! |
Date: | 2010-01-07 04:02:13 |
Message-ID: | feeb312b1001062002j3c465b3ei81feb761d9083d53@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
the problem is psql doesn't work after deleting this db. Guessing
re-installing is the option.
On Wed, Jan 6, 2010 at 4:15 PM, Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>wrote:
> On Wed, Jan 6, 2010 at 1:02 PM, Hilda Raymond <hildaraymond(at)gmail(dot)com>wrote:
>
>>
>>
>>
>> Hi,
>>
>> Im new to postgres and and as soon as I listed databases using the psql
>> -l command, i accidentally deleted the postgres default database. Im not
>> sure what to do. Appreciate any help Thank you.
>>
>>
> You can simply recreate the DB like so:
>
> create database postgres;
>
> It will take everything from the template1 database and make a copy by the
> name 'postgres'.
>
> Best regards,
> --
> gurjeet.singh
> @ EnterpriseDB - The Enterprise Postgres Company
> http://www.enterprisedb.com
>
> singh(dot)gurjeet(at){ gmail | yahoo }.com
> Twitter/Skype: singh_gurjeet
>
> Mail sent from my BlackLaptop device
>
--
Hilda
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Hilda Raymond <hildaraymond(at)gmail(dot)com> |
Cc: | Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: postgres default database deleted!! |
Date: | 2010-01-07 04:22:43 |
Message-ID: | 8576.1262838163@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
Hilda Raymond <hildaraymond(at)gmail(dot)com> writes:
> the problem is psql doesn't work after deleting this db. Guessing
> re-installing is the option.
Sure it does, just connect to some other database.
regards, tom lane