Re: PostgreSQL 8.1 Beta + Windows + Unicode

From: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
To: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
Cc: PostgreSQL Türkiye <pgsql-tr-genel(at)postgresql(dot)org>
Subject: Re: PostgreSQL 8.1 Beta + Windows + Unicode
Date: 2005-10-17 19:07:53
Message-ID: Pine.LNX.4.63.0510172158500.6475@mail.kivi.com.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-tr-genel


Merhaba,

On Mon, 17 Oct 2005, Volkan YAZICI wrote:

>> 8.1 sürümü UNICODE desteği ile gelecek. Kısa ve öz yanıt bu.

> Merakımı mazur görün

Ne demek yahu, sana e-posta kutum 7/24 açık.

> ama neden ICU yamaları 8.2 sürümü için bekletilenler [1] listesinde?
> [1] http://momjian.postgresql.org/cgi-bin/pgpatches_hold

Magnus sıralama işleminiyapmak için utf-16'ya çevirim yapan ve sonra
geriye çeviren bir kod yazmıştı ve bu şekilde sorun çözüldü.

ICU yaması için epey tartışma döndü listelerde (takip etmişsindir) ve beta
sürecine girildiği için ertelendi.

--
Devrim GUNDUZ
Kivi Bilişim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org
>From pgsql-tr-genel-owner(at)postgresql(dot)org Mon Oct 17 17:49:25 2005
X-Original-To: pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org
Received: from localhost (av.hub.org [200.46.204.144])
by svr1.postgresql.org (Postfix) with ESMTP id 1F614D7D95
for <pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org>; Mon, 17 Oct 2005 17:49:24 -0300 (ADT)
Received: from svr1.postgresql.org ([200.46.204.71])
by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024)
with ESMTP id 05428-08
for <pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org>;
Mon, 17 Oct 2005 20:49:19 +0000 (GMT)
Received: from mail.kivi.com.tr (mail.kivi.com.tr [213.143.254.37])
by svr1.postgresql.org (Postfix) with ESMTP id ABDE7D7D8D
for <pgsql-tr-genel(at)postgresql(dot)org>; Mon, 17 Oct 2005 17:49:20 -0300 (ADT)
Received: by mail.kivi.com.tr (Postfix, from userid 1009)
id 17173E81CB; Mon, 17 Oct 2005 23:48:31 +0300 (EEST)
Received: from localhost (localhost [127.0.0.1])
by mail.kivi.com.tr (Postfix) with ESMTP id 05E03E8131;
Mon, 17 Oct 2005 23:48:30 +0300 (EEST)
Date: Mon, 17 Oct 2005 23:48:30 +0300 (EEST)
From: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
X-X-Sender: devrim2(at)mail(dot)kivi(dot)com(dot)tr
To: =?iso-8859-9?Q?AL=DD_=C7EL=DDK?= <ali(at)verus(dot)com(dot)tr>
Cc: pgsql-tr-genel(at)postgresql(dot)org
Subject: Re: POSTGRESQL
In-Reply-To: <dj0avg$1d2$1(at)news(dot)hub(dot)org>
Message-ID: <Pine(dot)LNX(dot)4(dot)63(dot)0510172001550(dot)6475(at)mail(dot)kivi(dot)com(dot)tr>
References: <dj0avg$1d2$1(at)news(dot)hub(dot)org>
MIME-Version: 1.0
X-Kivi-MailScanner-Information: Please contact the ISP for more information
X-Kivi-MailScanner: Found to be clean
X-Kivi-MailScanner-From: devrim(at)gunduz(dot)org
X-Virus-Scanned: by amavisd-new at hub.org
X-Spam-Status: No, hits=0.016 required=5 tests=[AWL=0.016]
X-Spam-Level:
Content-Type: TEXT/PLAIN; CHARSET=iso-8859-9; FORMAT=flowed
Content-Transfer-Encoding: 8BIT
Content-ID: <Pine(dot)LNX(dot)4(dot)63(dot)0510172220251(dot)6475(at)mail(dot)kivi(dot)com(dot)tr>
X-Archive-Number: 2005103/11
X-Sequence-Number: 322

Merhaba,

On Mon, 17 Oct 2005, ALİ ÇELİK wrote:

> Bir tabloyu sildiğimiz de onun sequence sini de resetlemesi için ne
> yapabiliriz. Bunun için PostgreSQL in çözümü var mı ?
> Yoksa; kendimiz mi yapacağız..

Benim bildiğim kadarıyla, transactionların geçerli olabilmesi için böyle
bir işlem yapılmıyor. Şöyle anlatayım (T1: Transaction1, T2: Transaction
2) :

T1 : BEGIN;
T2 : BEGIN
T1 : TRUNCATE tablo_adi
T2 : INSERT INTO tablo_adi VALUES ...
T1 : COMMIT;
T2 : COMMIT;

Burada T2 transactionunun geçerli şekilde çalışabilmesi için "sıradaki"
sequence numarasını ataması gerekiyor. (insert'ten önce currval() ile bunu
gördüğünüzü düşünün). Dolayısıyla da TRUNCATE'in (ya da DELETE FROM'un)
sequence değerini sıfırlamasını beklemek doğru olmaz diye düşünüyorum.

setval(), currval(), nextval() ile sequence değerlerini
değiştirebilirsiniz ya da okuyabilirsiniz.

Saygılar,

--
Devrim GUNDUZ
Kivi Bilişim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org
>From pgsql-tr-genel-owner(at)postgresql(dot)org Mon Oct 17 17:58:08 2005
X-Original-To: pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org
Received: from localhost (av.hub.org [200.46.204.144])
by svr1.postgresql.org (Postfix) with ESMTP id 58CB0D7AB8
for <pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org>; Mon, 17 Oct 2005 17:58:07 -0300 (ADT)
Received: from svr1.postgresql.org ([200.46.204.71])
by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024)
with ESMTP id 09668-03
for <pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org>;
Mon, 17 Oct 2005 20:58:03 +0000 (GMT)
Received: from mail.kivi.com.tr (mail.kivi.com.tr [213.143.254.37])
by svr1.postgresql.org (Postfix) with ESMTP id 3A0F0D6EA1
for <pgsql-tr-genel(at)postgresql(dot)org>; Mon, 17 Oct 2005 17:58:04 -0300 (ADT)
Received: by mail.kivi.com.tr (Postfix, from userid 1009)
id 718A3E81D6; Mon, 17 Oct 2005 23:57:13 +0300 (EEST)
Received: from localhost (localhost [127.0.0.1])
by mail.kivi.com.tr (Postfix) with ESMTP id 68878E81CB;
Mon, 17 Oct 2005 23:57:13 +0300 (EEST)
Date: Mon, 17 Oct 2005 23:57:13 +0300 (EEST)
From: Devrim GUNDUZ <devrim(at)gunduz(dot)org>
X-X-Sender: devrim2(at)mail(dot)kivi(dot)com(dot)tr
To: Can Burak Cilingir <canburak(at)cs(dot)bilgi(dot)edu(dot)tr>
Cc: Ali Dereli <derelinux(at)gmail(dot)com>, pgsql-tr-genel(at)postgresql(dot)org
Subject: Re: serial sutunlar =?UTF-8?B?acOnaW4gbcO8bWvDvA==?=
In-Reply-To: <4353B012(dot)4040006(at)cs(dot)bilgi(dot)edu(dot)tr>
Message-ID: <Pine(dot)LNX(dot)4(dot)63(dot)0510172356550(dot)6475(at)mail(dot)kivi(dot)com(dot)tr>
References: <dfbe28f10510170615t9c69dc9nbd718dabd5bd6d62(at)mail(dot)gmail(dot)com>
<4353B012(dot)4040006(at)cs(dot)bilgi(dot)edu(dot)tr>
MIME-Version: 1.0
X-Kivi-MailScanner-Information: Please contact the ISP for more information
X-Kivi-MailScanner: Found to be clean
X-Kivi-MailScanner-From: devrim(at)gunduz(dot)org
X-Virus-Scanned: by amavisd-new at hub.org
X-Spam-Status: No, hits=0.016 required=5 tests=[AWL=0.016]
X-Spam-Level:
Content-Type: TEXT/PLAIN; charset=iso-8859-9; format=flowed
Content-Transfer-Encoding: 8BIT
X-Archive-Number: 2005103/12
X-Sequence-Number: 323

Merhaba,

On Mon, 17 Oct 2005, Can Burak Cilingir wrote:

>> serial olarak tanımladıgımız sutun her kayıt sonrası periyodik olarak
>> artıyor.
>> satır silindiginde ise arada bosluklar olusuyor. Bu boslukları kaldırmak
>> mümkünmüdür.
>
> hangi sebeple bunu istediğinizi de belirtebilir misiniz? Eğer ki bu tarz bir
> isteğiniz var ise o alanın türünün "serial" olmaması gerekir diye
> düşünüyorum.

Kesinlikle katılıyorum.
--
Devrim GUNDUZ
Kivi Bilişim Teknolojileri - http://www.kivi.com.tr
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org
>From pgsql-tr-genel-owner(at)postgresql(dot)org Mon Oct 17 18:51:35 2005
X-Original-To: pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org
Received: from localhost (av.hub.org [200.46.204.144])
by svr1.postgresql.org (Postfix) with ESMTP id A13F4D6EE2
for <pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org>; Mon, 17 Oct 2005 18:50:15 -0300 (ADT)
Received: from svr1.postgresql.org ([200.46.204.71])
by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024)
with ESMTP id 19402-10
for <pgsql-tr-genel-postgresql(dot)org(at)localhost(dot)postgresql(dot)org>;
Mon, 17 Oct 2005 21:50:11 +0000 (GMT)
Received: from mailhub.doruk.net.tr (mailhub.doruk.net.tr [212.58.5.105])
by svr1.postgresql.org (Postfix) with ESMTP id 32457D7CEA
for <pgsql-tr-genel(at)postgresql(dot)org>; Mon, 17 Oct 2005 18:50:10 -0300 (ADT)
Received: from mail3.doruk.net.tr ([212.58.5.9])
by mailhub.doruk.net.tr with smtp (Exim 4.24)
id 1ERcs4-0007cb-Kz
for pgsql-tr-genel(at)postgresql(dot)org; Tue, 18 Oct 2005 00:50:16 +0300
Received: from [85.105.24.123] (account adnandursun(at)asrinbilisim(dot)com(dot)tr)
by mail3.doruk.net.tr (CommuniGate Pro WebUser 4.2.5)
with HTTP id 152607758 for pgsql-tr-genel(at)postgresql(dot)org; Tue, 18 Oct 2005 00:48:44 +0300
From: <adnandursun(at)asrinbilisim(dot)com(dot)tr>
Subject: Re: POSTGRESQL
To: pgsql-tr-genel(at)postgresql(dot)org
X-Mailer: CommuniGate Pro WebUser Interface v.4.2.5
Date: Tue, 18 Oct 2005 00:48:44 +0300
Message-ID: <web-152607758(at)mail3(dot)doruk(dot)net(dot)tr>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-9"
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: by amavisd-new at hub.org
X-Spam-Status: No, hits=0.252 required=5 tests=[AWL=0.074, NO_REAL_NAME=0.178]
X-Spam-Level:
X-Archive-Number: 2005103/13
X-Sequence-Number: 324

>Merhaba,

>On Mon, 17 Oct 2005, ALİ ÇELİK wrote:

>> Bir tabloyu sildiğimiz de onun sequence sini de
resetlemesi için ne
>> yapabiliriz. Bunun için PostgreSQL in çözümü var mı ?
>> Yoksa; kendimiz mi yapacağız..

Tabloyu silmekten bir satır silmeyi mi yoksa tabloyu
düşürmeyi mi kastediyorsunuz ?

Sequence ler bir tabloya bağlı / bağımlı nesneler
değillerdir. Bu yüzden tabloda bir satır silindiğinde
sequence in mevcut değerinin değiştirilmesi veya tablo
düşürüldüğünde tablodaki bir kolon tarafından kullanılan
bir sequence in düşürülmesi doğru değildir.

Dilerseniz bunu kendiniz setval(),curval(),nextval() gibi
fonksiyonlarla veya "drop sequence" SQL komutuyla
yapabilirsiniz..

İyi Çalışmalar

Adnan DURSUN
ASRIN Bilişim Ltd.

In response to

Responses

Browse pgsql-tr-genel by date

  From Date Subject
Next Message Volkan YAZICI 2005-10-19 19:51:51 Re: PostgreSQL 8.1 Beta + Windows + Unicode
Previous Message Volkan YAZICI 2005-10-17 14:07:32 Re: PostgreSQL 8.1 Beta + Windows + Unicode