Transactions
When you move a package to a new shelf, you take it off the old shelf and put it on the new one. If someone stops you halfway, the package must not vanish. A transaction gives a database the same safety for a group of steps.
6 min read6 মিনিটে পড়া যায় · 8 sections8টি সেকশন · 8 sources8টি সোর্স · updated Nov 2026আপডেট: Nov 2026
All or nothing, with savepointsহয় সব, নয় কিছুই নয়, সেভপয়েন্টসহ
Run a money transfer, undo part of it with a savepoint, then choose COMMIT or ROLLBACK and watch what the other session sees.একটা টাকা সরানো চালান, সেভপয়েন্ট দিয়ে তার একটা অংশ আনডু করুন, তারপর COMMIT বা ROLLBACK বেছে দেখুন অন্য সেশন কী দেখে।
You’ll learnআপনি শিখবেন
- A transaction is all or nothingট্রানজেকশন হয় সব, নয় কিছুই নয়✓
- Others see nothing until COMMITCOMMIT পর্যন্ত অন্যরা কিছু দেখে না
- A savepoint undoes only the later partসেভপয়েন্ট শুধু পরের অংশ আনডু করে
- COMMIT keeps the work, ROLLBACK drops itCOMMIT কাজ রাখে, ROLLBACK ফেলে দেয়
In plain words
A transaction bundles several steps into one all-or-nothing operation. Other transactions that run at the same time do not see the steps in between, and if a failure stops the transaction, none of its steps change the database Source 1সোর্স 1. The changes of an open transaction stay invisible to others until it ends, and then they all become visible together Source 1সোর্স 1.
The page "ACID and BASE" covers the four ACID promises. This page covers the practical side, with PostgreSQL: how to open and close a transaction, how much one transaction sees of the others, and how to undo part of the work.
সহজ English
A transaction bundles several steps into one all-or-nothing operation. Other transactions that run at the same time do not see the steps in between. If a failure stops the transaction, none of its steps change the database Source 1সোর্স 1. The changes of an open transaction stay invisible to others until it ends. Then they all become visible together Source 1সোর্স 1.
The page "ACID and BASE" covers the four ACID promises. This page covers the practical side, with PostgreSQL. It shows how to open and close a transaction. It shows how much one transaction sees of the others. It shows how to undo part of the work.
বাংলা ব্যাখ্যা
ট্রানজেকশন (transaction) কয়েকটি ধাপকে একটি "হয় সব, নয় কিছুই নয়" (all-or-nothing) অপারেশনে বেঁধে দেয়। একই সময়ে চলা অন্য ট্রানজেকশন মাঝের ধাপগুলো দেখে না। কোনো ফেইলিউর ট্রানজেকশন থামিয়ে দিলে তার কোনো ধাপই ডেটাবেস বদলায় না Source 1সোর্স 1। খোলা ট্রানজেকশনের পরিবর্তন শেষ না হওয়া পর্যন্ত অন্যদের কাছে অদৃশ্য থাকে। তারপর সব পরিবর্তন একসঙ্গে দৃশ্যমান হয় Source 1সোর্স 1।
"ACID and BASE" পেজ চারটি ACID প্রতিশ্রুতি নিয়ে আলোচনা করে। এই পেজে PostgreSQL দিয়ে ব্যবহারিক দিক আছে। এতে দেখানো হয় কীভাবে ট্রানজেকশন খুলতে ও বন্ধ করতে হয়। এক ট্রানজেকশন অন্যদের কতটা দেখে, তাও দেখানো হয়। কাজের একটি অংশ কীভাবে আনডু (undo) করতে হয়, তাও দেখানো হয়।
When you need it
Use a transaction when one business action needs more than one statement, such as a payment that moves money between two accounts. A failure must not leave it half done Source 1সোর্স 1.
সহজ English
Use a transaction when one business action needs more than one statement. An example is a payment that moves money between two accounts. A failure must not leave it half done Source 1সোর্স 1.
বাংলা ব্যাখ্যা
একটি বিজনেস অ্যাকশনে (business action) একাধিক স্টেটমেন্ট লাগলে ট্রানজেকশন ব্যবহার করুন। উদাহরণ: দুটি অ্যাকাউন্টের মধ্যে টাকা সরানো পেমেন্ট। কোনো ফেইলিউর একে অর্ধেক করা অবস্থায় রেখে যেতে পারবে না Source 1সোর্স 1।
How it works
You surround the statements with BEGIN and COMMIT. If you decide not to keep the work, you send ROLLBACK instead of COMMIT, and all updates so far are cancelled Source 1সোর্স 1. COMMIT makes the changes visible to others and durable if a crash comes Source 3সোর্স 3.
Without BEGIN, PostgreSQL runs each statement in its own transaction and commits it if it worked ("autocommit") Source 2সোর্স 2. Some client libraries send BEGIN and COMMIT for you Source 1সোর্স 1.
A savepoint is a mark inside a transaction. You can undo only the commands after it Source 5সোর্স 5. The changes before the savepoint are kept Source 1সোর্স 1.
BEGIN;
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
SAVEPOINT before_credit;
UPDATE accounts SET balance = balance + 100 WHERE id = 2;
-- wrong account: undo only the credit
ROLLBACK TO SAVEPOINT before_credit;
UPDATE accounts SET balance = balance + 100 WHERE id = 3;
COMMIT;After a ROLLBACK TO, the savepoint is still defined, so you can go back to it again Source 1সোর্স 1. It also destroys the savepoints made after it Source 6সোর্স 6. RELEASE SAVEPOINT destroys a savepoint and keeps the effects of the later commands Source 5সোর্স 5. A savepoint works only inside a transaction block Source 5সোর্স 5. After an error puts the block in an aborted state, only ROLLBACK TO lets you continue, unless you roll back everything Source 1সোর্স 1.
সহজ English
You surround the statements with BEGIN and COMMIT. If you decide not to keep the work, you send ROLLBACK instead of COMMIT. Then all updates so far are cancelled Source 1সোর্স 1. COMMIT makes the changes visible to others and durable if a crash comes Source 3সোর্স 3.
Without BEGIN, PostgreSQL runs each statement in its own transaction. It commits the statement if it worked ("autocommit") Source 2সোর্স 2. Some client libraries send BEGIN and COMMIT for you Source 1সোর্স 1.
A savepoint is a mark inside a transaction. You can undo only the commands after it Source 5সোর্স 5. The changes before the savepoint are kept Source 1সোর্স 1.
For example, you debit account 1 and set a savepoint. Then you credit account 2 by mistake. You use ROLLBACK TO SAVEPOINT to undo only the credit. Then you credit account 3 and send COMMIT.
After a ROLLBACK TO, the savepoint is still defined, so you can go back to it again Source 1সোর্স 1. It also destroys the savepoints made after it Source 6সোর্স 6. RELEASE SAVEPOINT destroys a savepoint and keeps the effects of the later commands Source 5সোর্স 5. A savepoint works only inside a transaction block Source 5সোর্স 5. After an error puts the block in an aborted state, only ROLLBACK TO lets you continue, unless you roll back everything Source 1সোর্স 1.
বাংলা ব্যাখ্যা
আপনি স্টেটমেন্টগুলোকে BEGIN এবং COMMIT দিয়ে ঘিরে দেন। কাজ রাখতে না চাইলে COMMIT-এর বদলে ROLLBACK পাঠান। তখন এ পর্যন্ত সব আপডেট বাতিল হয় Source 1সোর্স 1। COMMIT পরিবর্তনগুলো অন্যদের কাছে দৃশ্যমান করে, এবং ক্র্যাশ হলেও সেগুলো টিকে থাকে Source 3সোর্স 3।
BEGIN ছাড়া PostgreSQL প্রতিটি স্টেটমেন্ট নিজের ট্রানজেকশনে চালায়। স্টেটমেন্ট সফল হলে সেটি কমিট (commit) করে ("autocommit") Source 2সোর্স 2। কিছু ক্লায়েন্ট লাইব্রেরি আপনার হয়ে BEGIN এবং COMMIT পাঠায় Source 1সোর্স 1।
সেভপয়েন্ট (savepoint) হলো ট্রানজেকশনের ভেতরের একটি চিহ্ন। এর পরের কমান্ডগুলোই শুধু আনডু করা যায় Source 5সোর্স 5। সেভপয়েন্টের আগের পরিবর্তন থেকে যায় Source 1সোর্স 1।
উদাহরণ: আপনি অ্যাকাউন্ট 1 থেকে টাকা কাটেন এবং একটি সেভপয়েন্ট বসান। তারপর ভুল করে অ্যাকাউন্ট 2-এ টাকা জমা দেন। ROLLBACK TO SAVEPOINT দিয়ে শুধু সেই জমা আনডু করেন। তারপর অ্যাকাউন্ট 3-এ জমা দেন এবং COMMIT পাঠান।
ROLLBACK TO-এর পরেও সেভপয়েন্ট সংজ্ঞায়িত থাকে, তাই আবার সেখানে ফিরে যাওয়া যায় Source 1সোর্স 1। এটি তার পরে তৈরি সেভপয়েন্টগুলোকেও ধ্বংস করে Source 6সোর্স 6। RELEASE SAVEPOINT একটি সেভপয়েন্ট ধ্বংস করে, কিন্তু পরের কমান্ডের ফলাফল রেখে দেয় Source 5সোর্স 5। সেভপয়েন্ট শুধু ট্রানজেকশন ব্লকের ভেতরে কাজ করে Source 5সোর্স 5। কোনো এরর ব্লককে অ্যাবোর্টেড (aborted) অবস্থায় ফেললে শুধু ROLLBACK TO দিয়ে এগোনো যায়, অথবা সবকিছু রোলব্যাক করতে হয় Source 1সোর্স 1।
Isolation levels
Several transactions often run at the same time. The isolation level says what one transaction can see of the others Source 8সোর্স 8. The SQL standard defines four levels. The strictest, Serializable, must give the same result as some one-at-a-time order. The other three are defined by "phenomena" that must not happen Source 7সোর্স 7:
- Dirty read: a transaction reads data from another transaction that is not committed Source 7সোর্স 7.
- Nonrepeatable read: a transaction reads data again and finds that another transaction has changed it since Source 7সোর্স 7.
- Phantom read: a transaction runs a query again and finds a different set of matching rows Source 7সোর্স 7.
- Serialization anomaly: the committed result fits no one-at-a-time order Source 7সোর্স 7.
This table shows what the PostgreSQL manual lists for each level Source 7সোর্স 7:
| Level | Dirty read | Nonrepeatable read | Phantom read | Serialization anomaly |
|---|---|---|---|---|
| Read uncommitted | Allowed by the standard, but not in PostgreSQL | Possible | Possible | Possible |
| Read committed | Not possible | Possible | Possible | Possible |
| Repeatable read | Not possible | Not possible | Allowed by the standard, but not in PostgreSQL | Possible |
| Serializable | Not possible | Not possible | Not possible | Not possible |
PostgreSQL has only three distinct levels, because its Read Uncommitted behaves like Read Committed Source 7সোর্স 7. The manual says that Read Committed is the default level in PostgreSQL Source 7সোর্স 7.
- Read Committed: a
SELECTsees only data committed before that query began. TwoSELECTs in one transaction can see different data if another transaction commits between them Source 7সোর্স 7. - Repeatable Read: the transaction sees one snapshot, taken at its first statement that is not a transaction-control command, so repeated reads match Source 7সোর্স 7. If it tries to change a row that another transaction changed and committed meanwhile, it fails with
could not serialize access due to concurrent updateSource 7সোর্স 7. The application should then retry the whole transaction Source 7সোর্স 7. - Serializable: it works like Repeatable Read, plus monitoring that costs some overhead. It can end a transaction with a serialization failure, so the application must be ready to retry Source 7সোর্স 7.
You choose a level with BEGIN ISOLATION LEVEL … or with SET TRANSACTION, before the first query or data change of the transaction Source 2সোর্স 2 Source 8সোর্স 8.
সহজ English
Several transactions often run at the same time. The isolation level says what one transaction can see of the others Source 8সোর্স 8. The SQL standard defines four levels. The strictest, Serializable, must give the same result as some one-at-a-time order. The other three are defined by "phenomena" that must not happen Source 7সোর্স 7:
- Dirty read: a transaction reads data from another transaction that is not committed Source 7সোর্স 7.
- Nonrepeatable read: a transaction reads data again and finds that another transaction has changed it since Source 7সোর্স 7.
- Phantom read: a transaction runs a query again and finds a different set of matching rows Source 7সোর্স 7.
- Serialization anomaly: the committed result fits no one-at-a-time order Source 7সোর্স 7.
This is what the PostgreSQL manual lists for each level Source 7সোর্স 7:
- Read uncommitted: the standard allows a dirty read, but PostgreSQL does not. The other three are possible.
- Read committed: a dirty read is not possible. The other three are possible.
- Repeatable read: dirty read and nonrepeatable read are not possible. The standard allows a phantom read, but PostgreSQL does not. A serialization anomaly is possible.
- Serializable: none of the four is possible.
PostgreSQL has only three distinct levels, because its Read Uncommitted behaves like Read Committed Source 7সোর্স 7. The manual says that Read Committed is the default level in PostgreSQL Source 7সোর্স 7.
- Read Committed: a
SELECTsees only data committed before that query began. TwoSELECTs in one transaction can see different data if another transaction commits between them Source 7সোর্স 7. - Repeatable Read: the transaction sees one snapshot. The snapshot is taken at its first statement that is not a transaction-control command. So repeated reads match Source 7সোর্স 7. Suppose it tries to change a row that another transaction changed and committed meanwhile. Then it fails with
could not serialize access due to concurrent update. The application should retry the whole transaction Source 7সোর্স 7. - Serializable: it works like Repeatable Read, plus monitoring that costs some overhead. It can end a transaction with a serialization failure, so the application must be ready to retry Source 7সোর্স 7.
You choose a level with BEGIN ISOLATION LEVEL … or with SET TRANSACTION. You do this before the first query or data change of the transaction Source 2সোর্স 2 Source 8সোর্স 8.
বাংলা ব্যাখ্যা
প্রায়ই কয়েকটি ট্রানজেকশন একই সময়ে চলে। আইসোলেশন লেভেল (isolation level) বলে এক ট্রানজেকশন অন্যদের কতটা দেখতে পারে Source 8সোর্স 8। SQL স্ট্যান্ডার্ড চারটি লেভেল সংজ্ঞায়িত করে। সবচেয়ে কড়া লেভেল Serializable-এর ফল অবশ্যই কোনো একটি এক-একটি করে চালানোর (one-at-a-time) ক্রমের ফলের সমান হতে হবে। বাকি তিনটি সংজ্ঞায়িত হয় এমন "ফেনোমেনা" (phenomena) দিয়ে, যা ঘটা চলবে না Source 7সোর্স 7:
- ডার্টি রিড (dirty read): একটি ট্রানজেকশন অন্য ট্রানজেকশনের কমিট-না-হওয়া ডেটা পড়ে Source 7সোর্স 7।
- নন-রিপিটেবল রিড (nonrepeatable read): একটি ট্রানজেকশন আবার ডেটা পড়ে এবং দেখে অন্য ট্রানজেকশন ইতিমধ্যে তা বদলে দিয়েছে Source 7সোর্স 7।
- ফ্যান্টম রিড (phantom read): একটি ট্রানজেকশন আবার কোয়েরি চালায় এবং মিলে যাওয়া রো-র (row) ভিন্ন একটি সেট পায় Source 7সোর্স 7।
- সিরিয়ালাইজেশন অ্যানোমালি (serialization anomaly): কমিট হওয়া ফল কোনো এক-একটি করে চালানোর ক্রমের সঙ্গে মেলে না Source 7সোর্স 7।
PostgreSQL ম্যানুয়াল প্রতিটি লেভেলের জন্য এটি তালিকাভুক্ত করে Source 7সোর্স 7:
- Read uncommitted: স্ট্যান্ডার্ড ডার্টি রিড অনুমোদন করে, কিন্তু PostgreSQL করে না। বাকি তিনটি সম্ভব।
- Read committed: ডার্টি রিড সম্ভব নয়। বাকি তিনটি সম্ভব।
- Repeatable read: ডার্টি রিড এবং নন-রিপিটেবল রিড সম্ভব নয়। স্ট্যান্ডার্ড ফ্যান্টম রিড অনুমোদন করে, কিন্তু PostgreSQL করে না। সিরিয়ালাইজেশন অ্যানোমালি সম্ভব।
- Serializable: চারটির কোনোটিই সম্ভব নয়।
PostgreSQL-এ মাত্র তিনটি আলাদা লেভেল আছে, কারণ এর Read Uncommitted আচরণে Read Committed-এর মতো Source 7সোর্স 7। ম্যানুয়াল বলে PostgreSQL-এ Read Committed হলো ডিফল্ট লেভেল Source 7সোর্স 7।
- Read Committed: একটি
SELECTশুধু সেই কোয়েরি শুরুর আগে কমিট হওয়া ডেটা দেখে। মাঝখানে অন্য ট্রানজেকশন কমিট করলে একই ট্রানজেকশনের দুটিSELECTভিন্ন ডেটা দেখতে পারে Source 7সোর্স 7। - Repeatable Read: ট্রানজেকশন একটি স্ন্যাপশট (snapshot) দেখে। স্ন্যাপশট নেওয়া হয় এর প্রথম এমন স্টেটমেন্টে, যা ট্রানজেকশন-কন্ট্রোল কমান্ড নয়। তাই বারবার পড়লে একই ফল মেলে Source 7সোর্স 7। ধরুন এটি এমন একটি রো বদলাতে চায়, যা ইতিমধ্যে অন্য ট্রানজেকশন বদলে কমিট করেছে। তখন এটি
could not serialize access due to concurrent updateদিয়ে ব্যর্থ হয়। অ্যাপ্লিকেশনের উচিত পুরো ট্রানজেকশন আবার চেষ্টা করা Source 7সোর্স 7। - Serializable: এটি Repeatable Read-এর মতো কাজ করে, সঙ্গে আছে মনিটরিং, যার কিছু ওভারহেড আছে। এটি সিরিয়ালাইজেশন ফেইলিউর দিয়ে একটি ট্রানজেকশন শেষ করে দিতে পারে, তাই অ্যাপ্লিকেশনকে রিট্রাই (retry) করতে প্রস্তুত থাকতে হবে Source 7সোর্স 7।
আপনি লেভেল বেছে নেন BEGIN ISOLATION LEVEL … দিয়ে অথবা SET TRANSACTION দিয়ে। এটি করতে হয় ট্রানজেকশনের প্রথম কোয়েরি বা ডেটা পরিবর্তনের আগে Source 2সোর্স 2 Source 8সোর্স 8।
A real-life example
This example is the tutorial's own. A learning site sells a course seat in two steps: it writes the payment row, then it writes the enrolment row. If the second step fails, a transaction rolls back the payment too, so nobody pays for a seat they do not get.
The same site shows a report page. Session A counts the seats taken and the page shows 40. Session B then commits a new enrolment. At Read Committed, the next SELECT of session A in the same transaction can see 41 Source 7সোর্স 7. At Repeatable Read it still sees 40 Source 7সোর্স 7.
সহজ English
This example is the tutorial's own. A learning site sells a course seat in two steps. It writes the payment row. Then it writes the enrolment row. If the second step fails, a transaction rolls back the payment too. So nobody pays for a seat they do not get.
The same site shows a report page. Session A counts the seats taken, and the page shows 40. Session B then commits a new enrolment. At Read Committed, the next SELECT of session A in the same transaction can see 41 Source 7সোর্স 7. At Repeatable Read it still sees 40 Source 7সোর্স 7.
বাংলা ব্যাখ্যা
এই উদাহরণটি টিউটোরিয়ালের নিজস্ব। একটি লার্নিং সাইট দুই ধাপে একটি কোর্স সিট বিক্রি করে। প্রথমে সে পেমেন্ট রো লেখে। তারপর এনরোলমেন্ট (enrolment) রো লেখে। দ্বিতীয় ধাপ ব্যর্থ হলে ট্রানজেকশন পেমেন্টও রোলব্যাক করে। তাই যে সিট পাওয়া যায়নি, তার জন্য কেউ টাকা দেয় না।
একই সাইট একটি রিপোর্ট পেজ দেখায়। সেশন A নেওয়া সিট গোনে, এবং পেজ 40 দেখায়। তারপর সেশন B একটি নতুন এনরোলমেন্ট কমিট করে। Read Committed-এ সেশন A-র একই ট্রানজেকশনের পরের SELECT 41 দেখতে পারে Source 7সোর্স 7। Repeatable Read-এ সে তখনও 40 দেখে Source 7সোর্স 7।
Common mistakes
- Not retrying. Repeatable Read and Serializable can fail on purpose. The manual says the application must be ready to retry Source 7সোর্স 7.
- Trusting a result that did not commit. In Serializable transactions, do not depend on data read in a transaction that later aborted Source 7সোর্স 7.
- Expecting a sequence to roll back. Changes to a sequence, such as the counter of a
serialcolumn, are not rolled back when the transaction aborts Source 7সোর্স 7. - Business rules at Repeatable Read. The manual says such rules are not likely to work without careful use of explicit locks Source 7সোর্স 7.
সহজ English
- Not retrying. Repeatable Read and Serializable can fail on purpose. The manual says the application must be ready to retry Source 7সোর্স 7.
- Trusting a result that did not commit. In Serializable transactions, do not depend on data read in a transaction that later aborted Source 7সোর্স 7.
- Expecting a sequence to roll back. Changes to a sequence, such as the counter of a
serialcolumn, are not rolled back when the transaction aborts Source 7সোর্স 7. - Business rules at Repeatable Read. The manual says such rules are not likely to work without careful use of explicit locks Source 7সোর্স 7.
বাংলা ব্যাখ্যা
- রিট্রাই না করা। Repeatable Read এবং Serializable ইচ্ছাকৃতভাবে ব্যর্থ হতে পারে। ম্যানুয়াল বলে অ্যাপ্লিকেশনকে রিট্রাই করতে প্রস্তুত থাকতে হবে Source 7সোর্স 7।
- কমিট না হওয়া ফলের উপর ভরসা করা। Serializable ট্রানজেকশনে এমন ট্রানজেকশনে পড়া ডেটার উপর নির্ভর করবেন না, যা পরে অ্যাবোর্ট হয়েছে Source 7সোর্স 7।
- সিকোয়েন্স রোলব্যাক হবে বলে আশা করা। সিকোয়েন্সের (sequence) পরিবর্তন, যেমন
serialকলামের কাউন্টার, ট্রানজেকশন অ্যাবোর্ট হলে রোলব্যাক হয় না Source 7সোর্স 7। - Repeatable Read-এ বিজনেস রুল। ম্যানুয়াল বলে, সতর্কভাবে এক্সপ্লিসিট লক (explicit lock) ব্যবহার না করলে এমন রুল কাজ করার সম্ভাবনা কম Source 7সোর্স 7।
What a tester can check
Tutorial advice
These test ideas are the tutorial's own advice.
- Force a failure. Make the second step of a multi-step action fail. Check that the first step left no trace.
- Two sessions. Change data in one session. Read it in another before and after the commit, and repeat the read inside one transaction at each isolation level.
- Retry. Create a conflict. Check that the app retries and does not show a raw error.
- Gaps in numbers. After a rollback, do not expect the ids to have no gaps.
সহজ English
These test ideas are the tutorial's own advice.
- Force a failure. Make the second step of a multi-step action fail. Check that the first step left no trace.
- Two sessions. Change data in one session. Read it in another before and after the commit. Repeat the read inside one transaction at each isolation level.
- Retry. Create a conflict. Check that the app retries and does not show a raw error.
- Gaps in numbers. After a rollback, do not expect the ids to have no gaps.
বাংলা ব্যাখ্যা
এই টেস্টের ধারণাগুলো টিউটোরিয়ালের নিজস্ব পরামর্শ।
- ফেইলিউর ঘটান। বহু-ধাপের একটি অ্যাকশনের দ্বিতীয় ধাপ ব্যর্থ করান। দেখুন প্রথম ধাপ কোনো চিহ্ন রেখে যায়নি।
- দুটি সেশন। এক সেশনে ডেটা বদলান। কমিটের আগে ও পরে অন্য সেশনে তা পড়ুন। প্রতিটি আইসোলেশন লেভেলে একই ট্রানজেকশনের ভেতরে পড়া আবার করুন।
- রিট্রাই। একটি কনফ্লিক্ট (conflict) তৈরি করুন। দেখুন অ্যাপ রিট্রাই করে এবং কাঁচা এরর দেখায় না।
- সংখ্যায় ফাঁক। রোলব্যাকের পর id-তে কোনো ফাঁক থাকবে না, এমন আশা করবেন না।
Key words
| Word | Meaning |
|---|---|
| Transaction | A group of steps that works as one all-or-nothing operation Source 1সোর্স 1 |
| Commit and rollback | Commit keeps the changes of a transaction Source 3সোর্স 3, and rollback discards them Source 4সোর্স 4 |
| Savepoint | A mark in a transaction that lets you undo only the later part Source 5সোর্স 5 |
| Isolation level | What one transaction can see of the others that run at the same time Source 8সোর্স 8 |
| Serialization failure | An error that asks the application to run the transaction again Source 7সোর্স 7 |