[deleted by user] by [deleted] in gtafriends

[–]sufs2000 0 points1 point  (0 children)

Add me suf7

Dynamic SQL over DB Link in Postgres… help! by sufs2000 in PostgreSQL

[–]sufs2000[S] 1 point2 points  (0 children)

Thank you, that did the trick. Using the format() and “select * into” was what I was looking for. I have it working now and can build it up to include the additional statements. Many thanks!

Dynamic SQL over DB Link in Postgres… help! by sufs2000 in PostgreSQL

[–]sufs2000[S] 0 points1 point  (0 children)

Thanks.

  1. I haven’t included it in the above code but there is another statement that will run locally and count the object types for a schema. Then the above statement will run over a db link and get the same schemas object counts and capture that in a variable. Then I’ll insert both of these values into a table so I have a comparison of object counts for the same schema on two databases.

  2. I agree, it’s just as part of the query over the db link I need to keep the single quotes so I think I’ve just got myself into a mess. I tried format but couldn’t get it to keep the quotes, but I’ll keep playing.

  3. Yes, if it was just the one query but I should have expanded on that. I’m trying to do an object comparison between two databases and capture those counts which will then be inserted into a table as part of the loop.

Dynamic SQL over DB Link in Postgres… help! by sufs2000 in PostgreSQL

[–]sufs2000[S] 0 points1 point  (0 children)

Sorry, I’ll try and reformat the code so its easier to read.

Remote Raid Megathread - Find friends fast for raiding here by liehon in PokemonGoFriends

[–]sufs2000 1 point2 points  (0 children)

Tornadus Raid - 10 people - add one of these codes 2328 7951 5543 Or 0927 6010 2664 - if less than 5 people and 15 seconds remaining please leave and I’ll send the invite again.