pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #15709: if drop exists syntax
10+ messages / 3 participants
[nested] [flat]

* BUG #15709: if drop exists syntax
@ 2019-03-21 07:25 PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: PG Bug reporting form @ 2019-03-21 07:25 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: kievelee33@gmail.com

The following bug has been logged on the website:

Bug reference:      15709
Logged by:          Kieve Lee
Email address:      kievelee33@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system:   window 7
Description:        

How about if in version 8.0, how do we use drop table if exists?? If you
dont provide this function then provide a script example dude, why pgsql so
unfriendly??



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
@ 2019-03-21 13:20 ` Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Pavel Stehule @ 2019-03-21 13:20 UTC (permalink / raw)
  To: kievelee33@gmail.com; pgsql-bugs@lists.postgresql.org

Hi

čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
noreply@postgresql.org> napsal:

> The following bug has been logged on the website:
>
> Bug reference:      15709
> Logged by:          Kieve Lee
> Email address:      kievelee33@gmail.com
> PostgreSQL version: Unsupported/Unknown
> Operating system:   window 7
> Description:
>
> How about if in version 8.0, how do we use drop table if exists?? If you
> dont provide this function then provide a script example dude, why pgsql so
> unfriendly??
>

This is not a bug.

Please, try to use supported version of PostgreSQL. 8.0 is unsupported
maybe ten years.

psql run in fault tolerant mode where errors are ignored. So you can just

drop table sometable;
create table sometable(...);

It should to works. The error messages you can ignore.

Regards

Pavel Stehule

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
@ 2019-04-11 03:53   ` Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Jueve L @ 2019-04-11 03:53 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

Hi,

if lets say im using v8,3 and i need delete duplicates data without ID
column and 8.3 dont have row_number() over function.
how do i write the script??

On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <pavel.stehule@gmail.com>
wrote:

> Hi
>
> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
> noreply@postgresql.org> napsal:
>
>> The following bug has been logged on the website:
>>
>> Bug reference:      15709
>> Logged by:          Kieve Lee
>> Email address:      kievelee33@gmail.com
>> PostgreSQL version: Unsupported/Unknown
>> Operating system:   window 7
>> Description:
>>
>> How about if in version 8.0, how do we use drop table if exists?? If you
>> dont provide this function then provide a script example dude, why pgsql
>> so
>> unfriendly??
>>
>
> This is not a bug.
>
> Please, try to use supported version of PostgreSQL. 8.0 is unsupported
> maybe ten years.
>
> psql run in fault tolerant mode where errors are ignored. So you can just
>
> drop table sometable;
> create table sometable(...);
>
> It should to works. The error messages you can ignore.
>
> Regards
>
> Pavel Stehule
>

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
@ 2019-04-11 04:00     ` Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:17       ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Pavel Stehule @ 2019-04-11 04:00 UTC (permalink / raw)
  To: Jueve L <kievelee33@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

Hi

čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com> napsal:

> Hi,
>
> if lets say im using v8,3 and i need delete duplicates data without ID
> column and 8.3 dont have row_number() over function.
> how do i write the script??
>

This is not a postgres bug. Please, use correct mailing list.

see
https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql

Regards

Pavel


> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
>
>> Hi
>>
>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>> noreply@postgresql.org> napsal:
>>
>>> The following bug has been logged on the website:
>>>
>>> Bug reference:      15709
>>> Logged by:          Kieve Lee
>>> Email address:      kievelee33@gmail.com
>>> PostgreSQL version: Unsupported/Unknown
>>> Operating system:   window 7
>>> Description:
>>>
>>> How about if in version 8.0, how do we use drop table if exists?? If you
>>> dont provide this function then provide a script example dude, why pgsql
>>> so
>>> unfriendly??
>>>
>>
>> This is not a bug.
>>
>> Please, try to use supported version of PostgreSQL. 8.0 is unsupported
>> maybe ten years.
>>
>> psql run in fault tolerant mode where errors are ignored. So you can just
>>
>> drop table sometable;
>> create table sometable(...);
>>
>> It should to works. The error messages you can ignore.
>>
>> Regards
>>
>> Pavel Stehule
>>
>

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
@ 2019-04-11 04:17       ` Jueve L <kievelee33@gmail.com>
  2019-04-11 04:32         ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Jueve L @ 2019-04-11 04:17 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

sry, this example is with ID, which indicate rows, but from my table dont
have like i was mentioned, please advice

On Thu, Apr 11, 2019 at 12:01 PM Pavel Stehule <pavel.stehule@gmail.com>
wrote:

> Hi
>
> čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>
>> Hi,
>>
>> if lets say im using v8,3 and i need delete duplicates data without ID
>> column and 8.3 dont have row_number() over function.
>> how do i write the script??
>>
>
> This is not a postgres bug. Please, use correct mailing list.
>
> see
> https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql
>
> Regards
>
> Pavel
>
>
>> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <pavel.stehule@gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>>> noreply@postgresql.org> napsal:
>>>
>>>> The following bug has been logged on the website:
>>>>
>>>> Bug reference:      15709
>>>> Logged by:          Kieve Lee
>>>> Email address:      kievelee33@gmail.com
>>>> PostgreSQL version: Unsupported/Unknown
>>>> Operating system:   window 7
>>>> Description:
>>>>
>>>> How about if in version 8.0, how do we use drop table if exists?? If you
>>>> dont provide this function then provide a script example dude, why
>>>> pgsql so
>>>> unfriendly??
>>>>
>>>
>>> This is not a bug.
>>>
>>> Please, try to use supported version of PostgreSQL. 8.0 is unsupported
>>> maybe ten years.
>>>
>>> psql run in fault tolerant mode where errors are ignored. So you can just
>>>
>>> drop table sometable;
>>> create table sometable(...);
>>>
>>> It should to works. The error messages you can ignore.
>>>
>>> Regards
>>>
>>> Pavel Stehule
>>>
>>

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:17       ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
@ 2019-04-11 04:32         ` Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:43           ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Pavel Stehule @ 2019-04-11 04:32 UTC (permalink / raw)
  To: Jueve L <kievelee33@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

čt 11. 4. 2019 v 6:17 odesílatel Jueve L <kievelee33@gmail.com> napsal:

> sry, this example is with ID, which indicate rows, but from my table dont
> have like i was mentioned, please advice
>

any table has hiden column ctid, that is unique



> On Thu, Apr 11, 2019 at 12:01 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
>
>> Hi
>>
>> čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>
>>> Hi,
>>>
>>> if lets say im using v8,3 and i need delete duplicates data without ID
>>> column and 8.3 dont have row_number() over function.
>>> how do i write the script??
>>>
>>
>> This is not a postgres bug. Please, use correct mailing list.
>>
>> see
>> https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql
>>
>> Regards
>>
>> Pavel
>>
>>
>>> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <pavel.stehule@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>>>> noreply@postgresql.org> napsal:
>>>>
>>>>> The following bug has been logged on the website:
>>>>>
>>>>> Bug reference:      15709
>>>>> Logged by:          Kieve Lee
>>>>> Email address:      kievelee33@gmail.com
>>>>> PostgreSQL version: Unsupported/Unknown
>>>>> Operating system:   window 7
>>>>> Description:
>>>>>
>>>>> How about if in version 8.0, how do we use drop table if exists?? If
>>>>> you
>>>>> dont provide this function then provide a script example dude, why
>>>>> pgsql so
>>>>> unfriendly??
>>>>>
>>>>
>>>> This is not a bug.
>>>>
>>>> Please, try to use supported version of PostgreSQL. 8.0 is unsupported
>>>> maybe ten years.
>>>>
>>>> psql run in fault tolerant mode where errors are ignored. So you can
>>>> just
>>>>
>>>> drop table sometable;
>>>> create table sometable(...);
>>>>
>>>> It should to works. The error messages you can ignore.
>>>>
>>>> Regards
>>>>
>>>> Pavel Stehule
>>>>
>>>

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:17       ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:32         ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
@ 2019-04-11 04:43           ` Jueve L <kievelee33@gmail.com>
  2019-04-11 04:47             ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Jueve L @ 2019-04-11 04:43 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

[image: image.png]

why MIN couldn't be use ??? is the version problem again??

On Thu, Apr 11, 2019 at 12:33 PM Pavel Stehule <pavel.stehule@gmail.com>
wrote:

>
>
> čt 11. 4. 2019 v 6:17 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>
>> sry, this example is with ID, which indicate rows, but from my table dont
>> have like i was mentioned, please advice
>>
>
> any table has hiden column ctid, that is unique
>
>
>
>> On Thu, Apr 11, 2019 at 12:01 PM Pavel Stehule <pavel.stehule@gmail.com>
>> wrote:
>>
>>> Hi
>>>
>>> čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>>
>>>> Hi,
>>>>
>>>> if lets say im using v8,3 and i need delete duplicates data without ID
>>>> column and 8.3 dont have row_number() over function.
>>>> how do i write the script??
>>>>
>>>
>>> This is not a postgres bug. Please, use correct mailing list.
>>>
>>> see
>>> https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql
>>>
>>> Regards
>>>
>>> Pavel
>>>
>>>
>>>> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <pavel.stehule@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>>>>> noreply@postgresql.org> napsal:
>>>>>
>>>>>> The following bug has been logged on the website:
>>>>>>
>>>>>> Bug reference:      15709
>>>>>> Logged by:          Kieve Lee
>>>>>> Email address:      kievelee33@gmail.com
>>>>>> PostgreSQL version: Unsupported/Unknown
>>>>>> Operating system:   window 7
>>>>>> Description:
>>>>>>
>>>>>> How about if in version 8.0, how do we use drop table if exists?? If
>>>>>> you
>>>>>> dont provide this function then provide a script example dude, why
>>>>>> pgsql so
>>>>>> unfriendly??
>>>>>>
>>>>>
>>>>> This is not a bug.
>>>>>
>>>>> Please, try to use supported version of PostgreSQL. 8.0 is unsupported
>>>>> maybe ten years.
>>>>>
>>>>> psql run in fault tolerant mode where errors are ignored. So you can
>>>>> just
>>>>>
>>>>> drop table sometable;
>>>>> create table sometable(...);
>>>>>
>>>>> It should to works. The error messages you can ignore.
>>>>>
>>>>> Regards
>>>>>
>>>>> Pavel Stehule
>>>>>
>>>>

Attachments:

image.png (image/png, 26.1K) download view image
^ permalink raw reply [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:17       ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:32         ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:43           ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
@ 2019-04-11 04:47             ` Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:51               ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Pavel Stehule @ 2019-04-11 04:47 UTC (permalink / raw)
  To: Jueve L <kievelee33@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

čt 11. 4. 2019 v 6:44 odesílatel Jueve L <kievelee33@gmail.com> napsal:

> [image: image.png]
>
> why MIN couldn't be use ??? is the version problem again??
>

i have not a idea


> On Thu, Apr 11, 2019 at 12:33 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
>
>>
>>
>> čt 11. 4. 2019 v 6:17 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>
>>> sry, this example is with ID, which indicate rows, but from my table
>>> dont have like i was mentioned, please advice
>>>
>>
>> any table has hiden column ctid, that is unique
>>
>>
>>
>>> On Thu, Apr 11, 2019 at 12:01 PM Pavel Stehule <pavel.stehule@gmail.com>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>>>
>>>>> Hi,
>>>>>
>>>>> if lets say im using v8,3 and i need delete duplicates data without ID
>>>>> column and 8.3 dont have row_number() over function.
>>>>> how do i write the script??
>>>>>
>>>>
>>>> This is not a postgres bug. Please, use correct mailing list.
>>>>
>>>> see
>>>> https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql
>>>>
>>>> Regards
>>>>
>>>> Pavel
>>>>
>>>>
>>>>> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <pavel.stehule@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>>>>>> noreply@postgresql.org> napsal:
>>>>>>
>>>>>>> The following bug has been logged on the website:
>>>>>>>
>>>>>>> Bug reference:      15709
>>>>>>> Logged by:          Kieve Lee
>>>>>>> Email address:      kievelee33@gmail.com
>>>>>>> PostgreSQL version: Unsupported/Unknown
>>>>>>> Operating system:   window 7
>>>>>>> Description:
>>>>>>>
>>>>>>> How about if in version 8.0, how do we use drop table if exists?? If
>>>>>>> you
>>>>>>> dont provide this function then provide a script example dude, why
>>>>>>> pgsql so
>>>>>>> unfriendly??
>>>>>>>
>>>>>>
>>>>>> This is not a bug.
>>>>>>
>>>>>> Please, try to use supported version of PostgreSQL. 8.0 is
>>>>>> unsupported maybe ten years.
>>>>>>
>>>>>> psql run in fault tolerant mode where errors are ignored. So you can
>>>>>> just
>>>>>>
>>>>>> drop table sometable;
>>>>>> create table sometable(...);
>>>>>>
>>>>>> It should to works. The error messages you can ignore.
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Pavel Stehule
>>>>>>
>>>>>

Attachments:

image.png (image/png, 26.1K) download view image
^ permalink raw reply [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:17       ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:32         ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:43           ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:47             ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
@ 2019-04-11 04:51               ` Jueve L <kievelee33@gmail.com>
  2019-04-11 05:00                 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Jueve L @ 2019-04-11 04:51 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

[image: image.png]
not the MIN cannot be use, is the ctid, how could the ctid in this format??
this ensure cannot be MIN.. please advice, got any unique key?? to do
duplicates data??

On Thu, Apr 11, 2019 at 12:48 PM Pavel Stehule <pavel.stehule@gmail.com>
wrote:

>
>
> čt 11. 4. 2019 v 6:44 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>
>> [image: image.png]
>>
>> why MIN couldn't be use ??? is the version problem again??
>>
>
> i have not a idea
>
>
>> On Thu, Apr 11, 2019 at 12:33 PM Pavel Stehule <pavel.stehule@gmail.com>
>> wrote:
>>
>>>
>>>
>>> čt 11. 4. 2019 v 6:17 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>>
>>>> sry, this example is with ID, which indicate rows, but from my table
>>>> dont have like i was mentioned, please advice
>>>>
>>>
>>> any table has hiden column ctid, that is unique
>>>
>>>
>>>
>>>> On Thu, Apr 11, 2019 at 12:01 PM Pavel Stehule <pavel.stehule@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com>
>>>>> napsal:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> if lets say im using v8,3 and i need delete duplicates data without
>>>>>> ID column and 8.3 dont have row_number() over function.
>>>>>> how do i write the script??
>>>>>>
>>>>>
>>>>> This is not a postgres bug. Please, use correct mailing list.
>>>>>
>>>>> see
>>>>> https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql
>>>>>
>>>>> Regards
>>>>>
>>>>> Pavel
>>>>>
>>>>>
>>>>>> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <
>>>>>> pavel.stehule@gmail.com> wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>>>>>>> noreply@postgresql.org> napsal:
>>>>>>>
>>>>>>>> The following bug has been logged on the website:
>>>>>>>>
>>>>>>>> Bug reference:      15709
>>>>>>>> Logged by:          Kieve Lee
>>>>>>>> Email address:      kievelee33@gmail.com
>>>>>>>> PostgreSQL version: Unsupported/Unknown
>>>>>>>> Operating system:   window 7
>>>>>>>> Description:
>>>>>>>>
>>>>>>>> How about if in version 8.0, how do we use drop table if exists??
>>>>>>>> If you
>>>>>>>> dont provide this function then provide a script example dude, why
>>>>>>>> pgsql so
>>>>>>>> unfriendly??
>>>>>>>>
>>>>>>>
>>>>>>> This is not a bug.
>>>>>>>
>>>>>>> Please, try to use supported version of PostgreSQL. 8.0 is
>>>>>>> unsupported maybe ten years.
>>>>>>>
>>>>>>> psql run in fault tolerant mode where errors are ignored. So you can
>>>>>>> just
>>>>>>>
>>>>>>> drop table sometable;
>>>>>>> create table sometable(...);
>>>>>>>
>>>>>>> It should to works. The error messages you can ignore.
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>> Pavel Stehule
>>>>>>>
>>>>>>

Attachments:

image.png (image/png, 26.1K) download view image
image.png (image/png, 38.3K) download view image
^ permalink raw reply [nested|flat] 10+ messages in thread

* Re: BUG #15709: if drop exists syntax
  2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
  2019-03-21 13:20 ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 03:53   ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:00     ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:17       ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:32         ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:43           ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
  2019-04-11 04:47             ` Re: BUG #15709: if drop exists syntax Pavel Stehule <pavel.stehule@gmail.com>
  2019-04-11 04:51               ` Re: BUG #15709: if drop exists syntax Jueve L <kievelee33@gmail.com>
@ 2019-04-11 05:00                 ` Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Pavel Stehule @ 2019-04-11 05:00 UTC (permalink / raw)
  To: Jueve L <kievelee33@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org

čt 11. 4. 2019 v 6:52 odesílatel Jueve L <kievelee33@gmail.com> napsal:

> [image: image.png]
> not the MIN cannot be use, is the ctid, how could the ctid in this
> format?? this ensure cannot be MIN.. please advice, got any unique key?? to
> do duplicates data??
>

can you move data to modern database and do deduplication there?

Without MIN on ctid you cannot to do it. You can write a extension in C
language, but it is probably out of scope.



> On Thu, Apr 11, 2019 at 12:48 PM Pavel Stehule <pavel.stehule@gmail.com>
> wrote:
>
>>
>>
>> čt 11. 4. 2019 v 6:44 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>
>>> [image: image.png]
>>>
>>> why MIN couldn't be use ??? is the version problem again??
>>>
>>
>> i have not a idea
>>
>>
>>> On Thu, Apr 11, 2019 at 12:33 PM Pavel Stehule <pavel.stehule@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> čt 11. 4. 2019 v 6:17 odesílatel Jueve L <kievelee33@gmail.com> napsal:
>>>>
>>>>> sry, this example is with ID, which indicate rows, but from my table
>>>>> dont have like i was mentioned, please advice
>>>>>
>>>>
>>>> any table has hiden column ctid, that is unique
>>>>
>>>>
>>>>
>>>>> On Thu, Apr 11, 2019 at 12:01 PM Pavel Stehule <
>>>>> pavel.stehule@gmail.com> wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> čt 11. 4. 2019 v 5:53 odesílatel Jueve L <kievelee33@gmail.com>
>>>>>> napsal:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> if lets say im using v8,3 and i need delete duplicates data without
>>>>>>> ID column and 8.3 dont have row_number() over function.
>>>>>>> how do i write the script??
>>>>>>>
>>>>>>
>>>>>> This is not a postgres bug. Please, use correct mailing list.
>>>>>>
>>>>>> see
>>>>>> https://stackoverflow.com/questions/6583916/delete-duplicate-records-in-postgresql
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>> Pavel
>>>>>>
>>>>>>
>>>>>>> On Thu, Mar 21, 2019 at 9:20 PM Pavel Stehule <
>>>>>>> pavel.stehule@gmail.com> wrote:
>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> čt 21. 3. 2019 v 11:44 odesílatel PG Bug reporting form <
>>>>>>>> noreply@postgresql.org> napsal:
>>>>>>>>
>>>>>>>>> The following bug has been logged on the website:
>>>>>>>>>
>>>>>>>>> Bug reference:      15709
>>>>>>>>> Logged by:          Kieve Lee
>>>>>>>>> Email address:      kievelee33@gmail.com
>>>>>>>>> PostgreSQL version: Unsupported/Unknown
>>>>>>>>> Operating system:   window 7
>>>>>>>>> Description:
>>>>>>>>>
>>>>>>>>> How about if in version 8.0, how do we use drop table if exists??
>>>>>>>>> If you
>>>>>>>>> dont provide this function then provide a script example dude, why
>>>>>>>>> pgsql so
>>>>>>>>> unfriendly??
>>>>>>>>>
>>>>>>>>
>>>>>>>> This is not a bug.
>>>>>>>>
>>>>>>>> Please, try to use supported version of PostgreSQL. 8.0 is
>>>>>>>> unsupported maybe ten years.
>>>>>>>>
>>>>>>>> psql run in fault tolerant mode where errors are ignored. So you
>>>>>>>> can just
>>>>>>>>
>>>>>>>> drop table sometable;
>>>>>>>> create table sometable(...);
>>>>>>>>
>>>>>>>> It should to works. The error messages you can ignore.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> Pavel Stehule
>>>>>>>>
>>>>>>>

Attachments:

image.png (image/png, 26.1K) download view image
image.png (image/png, 38.3K) download view image
^ permalink raw reply [nested|flat] 10+ messages in thread


end of thread, other threads:[~2019-04-11 05:00 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 07:25 BUG #15709: if drop exists syntax PG Bug reporting form <noreply@postgresql.org>
2019-03-21 13:20 ` Pavel Stehule <pavel.stehule@gmail.com>
2019-04-11 03:53   ` Jueve L <kievelee33@gmail.com>
2019-04-11 04:00     ` Pavel Stehule <pavel.stehule@gmail.com>
2019-04-11 04:17       ` Jueve L <kievelee33@gmail.com>
2019-04-11 04:32         ` Pavel Stehule <pavel.stehule@gmail.com>
2019-04-11 04:43           ` Jueve L <kievelee33@gmail.com>
2019-04-11 04:47             ` Pavel Stehule <pavel.stehule@gmail.com>
2019-04-11 04:51               ` Jueve L <kievelee33@gmail.com>
2019-04-11 05:00                 ` Pavel Stehule <pavel.stehule@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox