PostgreSQL

ผมไม่แน่ใจว่าหลายๆคนจะรู้จัก PostgreSQL กันหรือเปล่าว่ามันคือระบบฐานข้อมูลยอดนิยมที่มีลิขสิทธิ์แบบ open source อีกตัวหนึ่ง ที่มีความสามารถมาก และคิดว่ามีฟีเจอร์พอๆกับ oracle แต่ฟรีแบบ MySQL และแน่นอนมันเขียน PL/SQL ได้และหลายภาษาด้วย
ตอนนี้ PostgreSQL ได้ออกเบต้าแรกของเวอร์ชั่น 8.3 มาแล้้วเมื่อวันที่ 8 ตุลาคม ที่ผ่านมาโดยในเวอร์ชั่นเบต้านี้มีฟีเจอร์ใหม่ๆได้แก่

  • การปรับปรุงครั้งใหญ่ในเรื่อง performance consistencythrough HOT, Load Distributed Checkpoint, JIT bgwriter, Asynchronous Commit และอื่นๆ
  • มีการผนวก TSearch2 ซึ่งเป็นมอดูลในการค้นหาแบบ full text search พร้อมทั้งปรับปรุง syntax และเพิ่มเติมใน custom dictionary ด้วย
  • SQL/XML syntax
  • Logging to database-loadable CSV files.
  • Automated rebuilding of cached plans.
  • เพิ่ม complex type ใหม่ๆเช่น ENUMs, UUIDs และ arrays (ของ complex types)
  • รองรับการ authenticate แบบ GSSAPI และ SSPI
  • อื่นๆ ซึ่งสามารถหาอ่านได้ใน released note

(ขออนุญาตตัดแปะในบางหัวเรื่อง เนื่องจากรู้น้อยไปหน่อยครับ)

ที่มา - PostgreSQL: 8.3 Beta 1 Released!

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

bossalove Tue, 16/10/2007 - 22:25

PostgreSQL ก็ได้ยินมาหลายที
อันนี้สงสัย ทำไมเท่าที่เห็นถึงเห็นแต่ MySQL มากกว่าล่ะครับ?

sirn Tue, 16/10/2007 - 23:39

น่าจะเพราะว่า MySQL มันง่ายกว่า (ในด้านการใช้งาน) หรือเปล่าครับ? เพราะ PostgreSQL นี่ตอนผมเปลี่ยนจาก MySQL มาค่อนข้างตะกุกตะกักอยู่พอสมควรเลย มีรายละเอียดหลายๆ อย่างที่ต้องใส่ใจ (เช่นเรื่อง ' กับ " ก็ใช้แทนกันไม่ได้) แล้วก็รายละเอียดอื่นๆ อีกมากมาย

ที่ผมชอบของ PostgreSQL ก็คือเรื่องฟีเจอร์หลายๆ อย่างของมัน เช่น Datatype ของตารางแบบ Array, Rules, Trigger, Views หรือแม้แต่ PL/pgSQL ที่เป็นภาษาภายในของ Pg เองก็ตาม ช่วยให้งานหลายๆ อย่าง ง่ายขึ้น (และสนุกขึ้น) มากเลยทีเดียว

freeman Wed, 17/10/2007 - 01:09

ผมคิดว่าสาเหตุหลักเพราะ PostgreSQL ใช้ license แบบ BSD ครับ ไม่ได้ใช้ GNU GPL

Stay Foolish

overbid Wed, 17/10/2007 - 02:33

ผมว่าน่าจะเป็นเรื่อง user friendly กับเรื่อง ช้า มากกว่าครับ แต่เรื่องความสามารถแล้ว PostgreSQL นี่ความสามารถเยอะจริง ๆ ครับ ขาดตัวออก report กับ load balance เท่านั้น

cwt Wed, 17/10/2007 - 04:57

จริงๆ แล้วมันไม่ช้านะครับ ถ้าปรับแต่งเป็น อย่าง fsync ถ้าปิดมันซะ มันจะเร็วพอๆ กับ mysql โดยยังไม่ทันไปปรับแต่งตัวอื่น fsync มันเป็นตัวแปรบอกให้ postgresql sync data ลง harddisk จริงๆ ถ้าปิดมัน มันจะขึ้นอยู่กับ filesystem ว่าจะ sync เมื่อไหร่ อย่าง ext3 นี่ก็น่าจะปรับให้มัน sync เร็วๆ หน่อยได้

ipats Wed, 17/10/2007 - 13:13

In reply to by cwt

เคยเจอปัญหานี้ตอนใช้ sqlite เหมือนกัน ตอน insert ข้อมูลเยอะๆ
พอปิด fsync ปุ๊บ เร็วขึ้นสิบเท่า

iPAtS

multiplex Wed, 17/10/2007 - 05:43

ชอบ Postgresql ครับมันมีความ Classic ในตัวของมันเองดี ^o^ (ต้องลองใช้เองครับถึงจะรู้ ตอนนี้ใช้งานอยู่ประจำทุกวันครับ)
เดี๋ยวคงเอาคำแนะนำของคุณ cwt ไปคนห้าข้อมูลเพิ่มเสียแล้วครับ ไม่ทราบ fsync ไป config อย่างไงตรงไหนครับ ทุกวันนี้ใช้งานแต่ defualt ปรับแต่งแต่ตัว max_connections แค่เท่านั้นอะครับ

ในความคิดผมนะครับ

  • Postgresql เหมาะกับระบบงานภายในองค์กรหรือหน่วยงาน เพราะมีเครื่องเป็นของตัวเองเลือกลงได้อิอิ
  • Mysql เหมาะกับงานทำเว็บต่างๆ เพราะต้องไปใช้กับ Hosting อื่นๆ

cwt Wed, 17/10/2007 - 11:33

In reply to by multiplex

ผมไม่แน่ใจว่าบน platform ต่างๆ จะอยู่ที่เดียวกันหรือเปล่า ลองถาม google ดูครับ ใส่ postgresql กับ fsync ลงไปครับ

ข้อควรระวังอย่างเดียวคือ ถ้าใช้ระบบ cluster กับ postgres เช่น postgresql + slony + wal (write ahead log) จำเป็นต้องปล่อย fsync ให้ on ครับ แต่ถ้า run คนเดียวไม่ได้ทำ cluster ก็สามารถปิด fsync ได้ แต่ data อาจจะหายได้ ถ้าเครื่อง crash หรือ unplug ดังนั้นควรจะมีระบบสำรองไฟที่ดีด้วย ถ้าใช้บน linux ก็ปรับให้ filesystem sync เร็วกว่าค่า default หน่อยก็จะดีครับ