suche Hilfe bei PostgreSQL...

Packy

Lt. Junior Grade
Registriert
Nov. 2007
Beiträge
426
Hallo,

ich habe von meinem Professor folgende Aufgabe bekommen, die ich in wenigen Tagen vortragen muss:

Im Zusammenhang mit Constraints und Transaktionen gibt es
unterschiedliche Zeitpunkte an denen Costraints geprüft werden.
(Stichworte: DEFERRABLE, DEFERRED IMMEDIATE)
Bereite einen Vortrag vor um diese Begriffe zu erläutern und
zeige die Wirkung dieser Einstellungen an einem Beispiel.


Kann mir jemand erklären, was diese Befehle machen, möglichst in einfacher Sprache.
Klar, gegoogelt habe ich schon und Zugriff auf Bücher habe ich auch zu Hauf'.
Doch verstehe ich das dort geschriebene einfach nicht richtig.
Ein wenig Erfahrung habe ich bisher nur mit HSQLDB, mir wurde empfohlen das ganze Anhand von PostgreSQL zu erklären.
Ich hoffe mir kann jemand helfen,
außer der Prof, denn er & ich = geht nicht... *kopf schüttel...

Danke!!
 
Zuletzt bearbeitet:
eine Minute googlen!

http://www.postgresql.org/docs/8.1/interactive/sql-createtable.html schrieb:
DEFERRABLE
NOT DEFERRABLE

This controls whether the constraint can be deferred. A constraint that is not deferrable will be checked immediately after every command. Checking of constraints that are deferrable may be postponed until the end of the transaction (using the SET CONSTRAINTS command). NOT DEFERRABLE is the default. Only foreign key constraints currently accept this clause. All other constraint types are not deferrable.


INITIALLY IMMEDIATE
INITIALLY DEFERRED

If a constraint is deferrable, this clause specifies the default time to check the constraint. If the constraint is INITIALLY IMMEDIATE, it is checked after each statement. This is the default. If the constraint is INITIALLY DEFERRED, it is checked only at the end of the transaction. The constraint check time can be altered with the SET CONSTRAINTS command.
 
Zurück
Oben