实现PostgreSQL逻辑复制实战Postgres Conference China 2016 中国用户大会 MQ-Prototype KAFKA-MQ-Solution Cluster BackupData:2 Producer Producer Consumer DB dist-cluser multi single cluser broker1 broker2 brokerN … DB10 码力 | 17 页 | 1.90 MB | 1 年前3
PostgreSQL 8.2 Documentation__iter__ and next methods) CREATE FUNCTION greet (how text) RETURNS SETOF greeting AS $$ class producer: def __init__ (self, how, who): self.how = how self.who = who self.ndx = -1 def __iter__ (self): if self.ndx == len(self.who): raise StopIteration return ( self.how, self.who[self.ndx] ) return producer(how, [ "World", "PostgreSQL", "PL/Python" ]) $$ LANGUAGE plpythonu; 743 Chapter 40. PL/Python USING clause. For example, to delete all films produced by a given producer, one might do DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially0 码力 | 1762 页 | 5.43 MB | 1 年前3
PostgreSQL 8.2 Documentation__iter__ and next methods) CREATE FUNCTION greet (how text) RETURNS SETOF greeting AS $$ class producer: def __init__ (self, how, who): self.how = how self.who = who self.ndx = -1 def __iter__ (self): if self.ndx == len(self.who): raise StopIteration return ( self.how, self.who[self.ndx] ) return producer(how, [ "World", "PostgreSQL", "PL/Python" ]) $$ LANGUAGE plpythonu; 743 Chapter 40. PL/Python USING clause. For example, to delete all films produced by a given producer, one might do DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially0 码力 | 1748 页 | 13.12 MB | 1 年前3
PostgreSQL 8.3 Documentation__iter__ and next methods) CREATE FUNCTION greet (how text) RETURNS SETOF greeting AS $$ class producer: def __init__ (self, how, who): self.how = how self.who = who self.ndx = -1 def __iter__ (self): if self.ndx == len(self.who): raise StopIteration return ( self.how, self.who[self.ndx] ) return producer(how, [ "World", "PostgreSQL", "PL/Python" ]) $$ LANGUAGE plpythonu; 839 Chapter 41. PL/Python USING clause. For example, to delete all films produced by a given producer, one can do: DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially0 码力 | 2143 页 | 4.58 MB | 1 年前3
PostgreSQL 8.3 Documentation__iter__ and next methods) CREATE FUNCTION greet (how text) RETURNS SETOF greeting AS $$ class producer: def __init__ (self, how, who): self.how = how self.who = who self.ndx = -1 def __iter__ (self): if self.ndx == len(self.who): raise StopIteration return ( self.how, self.who[self.ndx] ) return producer(how, [ "World", "PostgreSQL", "PL/Python" ]) $$ LANGUAGE plpythonu; Generator (yield) CREATE FUNCTION USING clause. For example, to delete all films produced by a given producer, one can do: DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially0 码力 | 2015 页 | 4.54 MB | 1 年前3
PostgreSQL 8.0 Documentationthe WHERE condition. For example, to delete all films produced by a given producer, one might do DELETE FROM films WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially happening deletion. This syntax is not standard. A more standard way to do it is DELETE FROM films WHERE producer_id IN (SELECT id FROM producers WHERE name = ’foo’); In some cases the join style is easier to0 码力 | 1422 页 | 9.92 MB | 1 年前3
PostgreSQL 8.0 Documentationthe WHERE condition. For example, to delete all films produced by a given producer, one might do DELETE FROM films WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially happening deletion. This syntax is not standard. A more standard way to do it is DELETE FROM films WHERE producer_id IN (SELECT id FROM producers WHERE name = ’foo’); In some cases the join style is easier to0 码力 | 1332 页 | 9.76 MB | 1 年前3
PostgreSQL 8.4 Documentation__iter__ and next methods) CREATE FUNCTION greet (how text) RETURNS SETOF greeting AS $$ class producer: def __init__ (self, how, who): self.how = how self.who = who self.ndx = -1 def __iter__ (self): if self.ndx == len(self.who): raise StopIteration return ( self.how, self.who[self.ndx] ) return producer(how, [ "World", "PostgreSQL", "PL/Python" ]) $$ LANGUAGE plpythonu; Generator (yield) CREATE FUNCTION USING clause. For example, to delete all films produced by a given producer, one can do: DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially0 码力 | 2224 页 | 5.05 MB | 1 年前3
PostgreSQL 8.4 Documentation__iter__ and next methods) CREATE FUNCTION greet (how text) RETURNS SETOF greeting AS $$ class producer: def __init__ (self, how, who): self.how = how self.who = who self.ndx = -1 def __iter__ (self): if self.ndx == len(self.who): raise StopIteration return ( self.how, self.who[self.ndx] ) return producer(how, [ "World", "PostgreSQL", "PL/Python" ]) $$ LANGUAGE plpythonu; 921 Chapter 41. PL/Python USING clause. For example, to delete all films produced by a given producer, one can do: DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially0 码力 | 2371 页 | 5.09 MB | 1 年前3
PostgreSQL 8.1.11 DocumentationUSING clause. For example, to delete all films produced by a given producer, one might do DELETE FROM films USING producers WHERE producer_id = producers.id AND producers.name = ’foo’; What is essentially deletion. This syntax is not standard. A more standard way to do it is DELETE FROM films WHERE producer_id IN (SELECT id FROM producers WHERE name = ’foo’); In some cases the join style is easier to0 码力 | 1582 页 | 12.19 MB | 1 年前3
共 41 条
- 1
- 2
- 3
- 4
- 5













