To translate the given text into the Tunisian dialect, I will go step by step and highlight differences from Modern Standard Arabic (MSA), as well as indicate sections I am confident translating.
Original Text:
Q: Multiply statements run at one time in postgresql In postgresql, if multiply SQL statements are executed at one time (In pgadmin, select all these statements and click "execute" button, like this picture), the server will wait until the last statement is done before the previous statements to take effect. When these statements are being executed, if I run SELECT * FROM tablename1 then the "relation not exist" error will occur. Are there any ways for the statements to take effect once they are executed. Note: Every CREATE statement needs very short time if it is executed by itself. The SELECT statement needs a long time.
Step-by-Step Translation:
-
"Multiply statements run at one time in postgresql":
- Tunisian Dialect: كيفاش تنجم ترانزاكسيوني تتنفذ بمرّة وحدة في PostgreSQL.
- Difference: "تنجم" in Tunisian is equivalent to "يمكن" in MSA.
-
"In postgresql, if multiply SQL statements are executed at one time":
- Tunisian Dialect: في PostgreSQL، إذا كان تتنفذ برشا أوامر SQL مع بعضهم.
- Difference: "برشا" means "many" in Tunisian, whereas in MSA it would be "عدّة".
-
"(In pgadmin, select all these statements and click 'execute' button, like this picture),":
- Tunisian Dialect: (في pgAdmin، اختار الكلّ الأوامر واضغط على زرّ 'تنفيذ').
- Confidence Highlight: Confident with "اختار" and "اضغط" as colloquial replacements for "اختر" and "اضغط" in MSA.
-
"the server will wait until the last statement is done before the previous statements to take effect":
- Tunisian Dialect: السيرفر يستنى حتى يتكمل آخر أمر قبل ما يتنفذوا الأوامر اللي قبلو.
- Difference: "يستنى" means "wait" in Tunisian, whereas in MSA it would be "ينتظر".
-
"When these statements are being executed, if I run SELECT * FROM tablename1":
- Tunisian Dialect: كي تتنفذ الأوامر هاذي، إذا تنفذ SELECT * FROM tablename1.
- Difference: "كي" is used for "when" instead of MSA "عندما".
-
"then the 'relation not exist' error will occur":
- Tunisian Dialect: الخطأ 'ما فماش علاقة' باش يصير.
- Confidence Highlight: Confident with "ما فماش" for "not exist".
-
"Are there any ways for the statements to take effect once they are executed?":
- Tunisian Dialect: فماشي طرق باش الأوامر تتنفذ في وقتها؟
- Difference: "فماشي" is used for "are there any" in Tunisian instead of MSA "هل يوجد".
-
"Note: Every CREATE statement needs very short time if it is executed by itself. The SELECT statement needs a long time.":
- Tunisian Dialect: ملاحظة: كل أمر CREATE يلزم وقت قصير إذا يتنفذ بروحو. أما SELECT يلزمها وقت طويل.
- Confidence Highlight: Confident with "قصير" and "طويل" for "short" and "long".
Answer Translation:
A: I assume, that when you select a bunch of statements in pgadmin and hit “Execute”, they all run in a single transaction.
- Tunisian Dialect: نظنّ وقت تكون مختار برشا أوامر في pgAdmin وتضغط على "تنفيذ"، كلهم يتنفذوا في معاملة وحدة.
- Difference: "نظن" is Tunisian for "أفترض", "معاملة" is used for "transaction".
This means, that the results of the transaction will not be visible to the other concurrent sessions till it commits (or not visible at all if transaction fails).
- Tunisian Dialect: هاذا يعني النتائج ما تظهرش للفترات الأخرى لحتى تتم المصادقة على المعاملة (وما تظهرش كان المعاملة تفشل).
- Confidence Highlight: Confident with "ما تظهرش" as "not visible".
Try adding explicit COMMIT; after each CREATE TABLE or after the last one. You may also want to read about transaction isolation.
- Tunisian Dialect: جرّب زيد COMMIT; بعد كل CREATE TABLE أو بعد الآخراني. ويمكن تحب تقرأ على عزل المعاملات.
- Difference: "جرّب زيد" for "try adding", "الآخراني" for "the last one".
This translation captures the essence of Tunisian conversational style while providing a clear understanding of the technical context.